New answers tagged

0

In Mathematica 10.3 the answer above is not working with Unicode characters dataset=Dataset[{<|"a"->1,"b"->2,"\[CapitalLambda]"->3|>,<|"a"->3,"b"->4,"\[CapitalLambda]"->5|>}] Export["test.json", dataset] File content is [ {"a": 1, "b": 2, "\[CapitalLambda]": 3}, {"a": 3, "b": 4, "\[CapitalLambda]": 5} ] But if ...


8

The result of importing a file in JSON format is a list of rules. For information about ways to use rules, see the documentation for Applying Transformation Rules. Here is an example: data = ImportString["{\"x\":1, \"y\":{\"a\":2, \"b\":[3, 4]}}", "JSON"] (* {"x" -> 1, "y" -> {"a" -> 2, "b" -> {3, 4}}} *) Retrieving a top-level property is ...



Top 50 recent answers are included