MKS JSON Export Dialog
Applicability: Cranium, Synapse

JSON (Javascript Object Notation) is a standard, text-based format for exchanging data. Cranium and Synapse can export many physical property values and attributes into JSON formatted files. (MKS is continuing to expand this capability.)

The following window displays an example MKS JSON file. The application generated a file containing the normal boiling point, melting point and critical temperature for seven common chemicals.

Example: Export values into an JSON data file
  1. Open a Knowledge Base using either Cranium or Synapse.
  2. Click on the File menu and select the Export Values command.
  3. The application will activate the KB Export Dialog.
  4. Select 'MKS JSON File Format' from the Output File Format list and press the Export button. The Export Values into an MKS JSON File dialog is activated.
    Browse button for entering the name of the export file.
    The entity type being displayed. The current entity types are Summary, Chemical, Element and Reference.
    List of entities selected to be exported.
    Units of measure option:
    • Standard units: all values will be converted to standard units before being exported. (See the Property Units dialog documentation for more details on standard units.)
    • Original units: values will be exported in the original units in which they were entered.
    The properties to be exported.
    The datum status values to be exported.
    Formatting options specifying how the exported file will be written. Typically you would select both options, including line breaks and indentation, if you wish to generate a readable file.
    Option for including a space after the ":" separator. This option is only for readability preference.
    Commands for:
    • All Entities, All Props, All Status: select all listed entities, properties or status values
    • Select Entity: activates the Select Entity dialog. This dialog facilitates the selection of entities by name and other attributes
    • Clear Entities, Clear Props, Clear Status: deselects all listed entities, properties or status values
    • Bookmark: use a bookmark to select chemicals
    Export button
  5. Press the Browse button to select the file into which the exported values will be written.
  6. Click on the Entity Type combobox and select the Chemical entity type.
  7. Select one or more chemicals from the Entities list. Use the Select Entity or Bookmark buttons to facilitate your selection. You can also press the All Entities button to select all displayed entities for export. (See note below.)
  8. Select one or more properties from the Properties list. You can press the All Props button to select all displayed properties for export. (See note below.)
  9. Select one or more status values from the Status list. You can press the All Status button to select all displayed status values for export.
  10. Finally press the dialog's Export button. Cranium or Synapse will compile the requested physical property values and write these into the named MKS JSON data file.
Tip: Avoid large JSON files

JSON files can become very large, even too large to be properly handled by various software programs. We recommend that you judiciously select only those entities and properties needed for your current task.

Example Files

The following files were generated by exporting physical property values for seven chemicals (acetic acid, cyclohexanol, ethanol, ethyl acetate, n-hexane, toluene and vinyl chloride). The javascript and python files contain some example scripts detailed later on this page.

Example File Description
MKSJSONExportFile01.json A JSON file containing several physical property data for seven common chemicals.
MKSJSONExportFile02.json A JSON file containing liquid density data as a function of temperature for seven common chemicals.
MKSJSONExportScripts.js A JavaScript file containing scripts for reading JSON data files and displaying JSON data. A Python script for reading JSON data files and graphically displaying JSON data.
JavaScript Example

JSON files are commonly used to transfer and display information on webpages. JavaScript scripts are one method for accessing JSON files. In this example, JavaScript scripts are used to extract values from an MKS JSON data file and display them in the html table shown below. (The files used in this example are listed in the example files table shown above.)


The JavaScript scripts used to populate the table are shown below:

Python Example

Python is an interpreted programming language. (More information is available at Python can easily read and manipulate data from JSON files. In this example, we used a python script to graph the liquid density as a function of temperature for several common chemicals. (The files used in this example are listed in the example files table shown above.)

Related Documentation