{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Object]{td}{td}[#parse]\(text)
Parses a string as JSON and returns the parsed value.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#parse]\(text, reviver)
Parses a string as JSON and returns the parsed value.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#stringify]\(value, replacer, space)
Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=parse-String|class=node}{tr:id=name}{td}h6.parse{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}parse{span}{span:id=iets|style=float: left;}\(text){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:parse-String_des|trigger=button|text=}{sub-section}{sub-section:parse-String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:parse-String_snc|trigger=button|text=}{sub-section}{sub-section:parse-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:parse-String_prs|trigger=button|text=}{sub-section}{sub-section:parse-String_prs|trigger=none|class=sIndent}\{[String]} text -- The string to parse as JSON.  See the JSON object for a description of JSON syntax.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:parse-String_ret|trigger=button|text=}{sub-section}{sub-section:parse-String_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:parse-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:parse-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:parse-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_sam|trigger=none}{code:language=javascript}
JSON.parse('[1, 5, "false"]');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=parse-String_Function|class=node}{tr:id=name}{td}h6.parse{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}parse{span}{span:id=iets|style=float: left;}\(text, reviver){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:parse-String_Function_des|trigger=button|text=}{sub-section}{sub-section:parse-String_Function_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:parse-String_Function_snc|trigger=button|text=}{sub-section}{sub-section:parse-String_Function_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:parse-String_Function_prs|trigger=button|text=}{sub-section}{sub-section:parse-String_Function_prs|trigger=none|class=sIndent}\{[String]} text -- The string to parse as JSON.  See the JSON object for a description of JSON syntax.
\{[Function]} reviver -- A function, prescribes how the value originally produced by parsing is transformed, before being returned.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:parse-String_Function_ret|trigger=button|text=}{sub-section}{sub-section:parse-String_Function_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:parse-String_Function_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_Function_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:parse-String_Function_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_Function_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:parse-String_Function_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:parse-String_Function_sam|trigger=none}{code:language=javascript}
var transformed = JSON.parse('{"p": 5}', function(k, v) { if (k === "") return v; return v * 2; });
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_sam|trigger=none}{code:language=javascript}
JSON.stringify([1, "false", false])
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_Function|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_Function_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_Function_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_Function_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Function]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_Function_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_Function_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_Function_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_Function_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_sam|trigger=none}{code:language=javascript}
function censor(key, value) {  
 if (typeof(value) == "string") {  
   return undefined;  
 }   
 return value;  
}  
      
var foo = {foundation: "Mozilla", model: "box", week: 45, transport: "car", month: 7};  
var jsonString = JSON.stringify(foo, censor);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_Function_Number|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_Function_Number_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_Function_Number_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_Function_Number_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_Number_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Function]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[Number]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_Function_Number_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_Function_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_Function_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_Function_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_Number_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_Function_String|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_Function_String_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_Function_String_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_Function_String_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_String_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Function]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[String]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_Function_String_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_Function_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_Function_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_Function_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_Function_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_Function_String_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_NumberArray|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_NumberArray_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_NumberArray_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_NumberArray_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Number]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_NumberArray_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_NumberArray_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_NumberArray_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_NumberArray_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_sam|trigger=none}{code:language=javascript}
function censor(key, value) {  
 if (typeof(value) == "string") {  
   return undefined;  
 }   
 return value;  
}  
      
var foo = {foundation: "Mozilla", model: "box", week: 45, transport: "car", month: 7};  
var jsonString = JSON.stringify(foo, censor);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_NumberArray_Number|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_NumberArray_Number_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_NumberArray_Number_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_NumberArray_Number_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_Number_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Number]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[Number]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_NumberArray_Number_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_NumberArray_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_NumberArray_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_NumberArray_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_Number_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_NumberArray_String|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_NumberArray_String_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_NumberArray_String_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_NumberArray_String_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_String_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[Number]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[String]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_NumberArray_String_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_NumberArray_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_NumberArray_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_NumberArray_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_NumberArray_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_NumberArray_String_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_StringArray|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_StringArray_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_StringArray_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_StringArray_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[String]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_StringArray_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_StringArray_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_StringArray_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_StringArray_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_sam|trigger=none}{code:language=javascript}
function censor(key, value) {  
 if (typeof(value) == "string") {  
   return undefined;  
 }   
 return value;  
}  
      
var foo = {foundation: "Mozilla", model: "box", week: 45, transport: "car", month: 7};  
var jsonString = JSON.stringify(foo, censor);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_StringArray_Number|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_StringArray_Number_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_StringArray_Number_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_StringArray_Number_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_Number_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[String]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[Number]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_StringArray_Number_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_StringArray_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_StringArray_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_StringArray_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_Number_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=stringify-Object_StringArray_String|class=node}{tr:id=name}{td}h6.stringify{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}stringify{span}{span:id=iets|style=float: left;}\(value, replacer, space){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:stringify-Object_StringArray_String_des|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:stringify-Object_StringArray_String_snc|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:stringify-Object_StringArray_String_prs|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_String_prs|trigger=none|class=sIndent}\{[Object]} value -- The value to convert to a JSON string.
\{[String]\[]} replacer -- If a function, transforms values and properties encountered while stringifying; if an array (of String or Number), specifies the set of properties included in objects in the final string.
\{[String]} space -- The space argument may be used to control spacing in the final string (causes the resulting string to be pretty\-printed). If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:stringify-Object_StringArray_String_ret|trigger=button|text=}{sub-section}{sub-section:stringify-Object_StringArray_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:stringify-Object_StringArray_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:stringify-Object_StringArray_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:stringify-Object_StringArray_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:stringify-Object_StringArray_String_sam|trigger=none}{code:language=javascript}
JSON.stringify({ uno: 1, dos : 2 }, null, '\t')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}