JSON: Difference between revisions

321 bytes added ,  10 years ago
add julia entry
(add julia entry)
Line 1,114:
 
json_deserialize(#myjson) // map(Closed = array(Wednesday, Thursday, Friday), numeric = 11, Open = array(Monday, Tuesday), string = Eleven, success = true)</lang>
 
=={{header|Julia}}==
The JSON module is installed by running <code>Pkg_add("JSON")</code>.
<lang julia>julia> require("JSON")
 
julia> JSON.parse("{ \"blue\": [1,2], \"ocean\": \"water\" }")
["ocean"=>"water","blue"=>{1,2}]
 
julia> JSON.json({"blue" => [1,2] , "ocean" => "water"})
"{\"ocean\":\"water\",\"blue\":[1,2]}"
 
=={{header|LFE}}==