JSON: Difference between revisions

Content added Content deleted
m (Move to correct position)
Line 2,172: Line 2,172:
{"foo":[1,2,3],"bar":"hello"}
{"foo":[1,2,3],"bar":"hello"}
</pre>
</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}}==
=={{header|Python}}==