Jump to content

JSON: Difference between revisions

245 bytes added ,  9 years ago
m (Move to correct position)
Line 2,172:
{"foo":[1,2,3],"bar":"hello"}
</pre>
 
=={{header|PowerShell}}==
{{works with PowerShell v3 and higher}}
<lang PowerShell>[ordered]@{ "foo"= 1; "bar"= 10, "apples" } | convertto-json</lang>
 
{
"foo": 1,
"bar": [
10,
"apples"
]
}
 
=={{header|Python}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.