JSON: Difference between revisions
Content added Content deleted
m (→{{header|Standard ML}}: typo) |
|||
Line 3,548: | Line 3,548: | ||
</pre> |
</pre> |
||
=={{header|Standard ML}}== |
=={{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 |
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 or 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> |
<lang Standard ML> |
||
val Validate = fn jsonstring => |
val Validate = fn jsonstring => |