Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how

Legacy Documentation

Mathematica 8 (2010)

This is documentation for Mathematica 8, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 14.3)

JSON (.json)

MIME type: .
Data interchange format.
Commonly used in web service implementations.
Contains collections of unordered name-value pairs or ordered values.
JSON is an acronym derived from JavaScript Object Notation.
Based on a subset of the JavaScript programming language.
Plain text format.
Developed in 2001.
Published as RFC 4627.
  • Import gives a rule-based representation of a JSON file.
  • Export exports a list of rules to JSON.
  • Import imports the specified element from a JSON file.
  • Import imports multiple elements.
  • Export creates a JSON file by treating expr as specifying element elem.
  • Export exports expr with the specified option elements taken to have the specified values.
  • Export uses rules to specify the elements to be exported.
  • See the main function pages for full general information on Import and Export .
"Elements" list of elements and options available in this file
"Rules" full list of rules for each element and option
"Options" list of rules for options, properties, and settings
  • Data representation element:
"Data" contents of a JSON file as nested rules
  • Import by default uses the element.
  • When importing from JSON, lists are returned in standard Mathematica sorting order.
"Compact" False whether to use line breaks to format file content
(2)
Import the contents of a JSON file:
Export a list of chemical elements and their properties to a JSON file:
Create a compact string representation of a JSON file:
Import the contents of a JSON file:
Out[1]=
Export a list of chemical elements and their properties to a JSON file:
Out[1]=
Create a compact string representation of a JSON file:
Out[1]=


ja zh

AltStyle によって変換されたページ (->オリジナル) /