Jump to content

JSON: Difference between revisions

191 bytes added ,  4 years ago
m
(→‎{{header|Standard ML}}: + generic loop)
Line 3,548:
</pre>
=={{header|Standard ML}}==
Works on Unix/Linux/BSD with jq (github.com/stedolan/jq/ ) installed. Data storage in strings, so floating point numbers can be written back as received, in a recursive polymorphic structure, which can also be used to store the data as SML-types. (Without Jq on the system and on Microsoft systems, delete the Validate function and its call, and the code can be used for valid JSON-strings without any white space outside strings (only).)
<lang Standard ML>
val Validate = fn jsonstring =>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.