JSON: Difference between revisions

6 bytes removed ,  10 years ago
No edit summary
Line 918:
=={{header|Harbour}}==
Parse JSON string into the ''arr'' variable:
<lang harbourvisualfoxpro> LocalLOCAL arr
hb_jsonDecode( '[101,[26,"Test1"],18,false]', @arr )</lang>
Output the JSON representation of an array ''arr'':
<lang harbourvisualfoxpro> LocalLOCAL arr := { 101, { 18, "Test1" }, 18, .F. }
? hb_jsonEncode( arr )
// The output is:
// [101,[26,"Test1"],18,false]</lang>
 
=={{header|Haskell}}==