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.
1
|
Browse button for entering the name of the export file. |
2
|
The entity type being displayed. The current entity types are Summary, Chemical, Element and Reference. |
3
|
List of entities selected to be exported. |
4
|
Units of measure option:
|
5
|
The properties to be exported. |
6
|
The datum status values to be exported. |
7
|
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. |
8
|
Option for including a space after the ":" separator. This option is only for readability preference. |
9
|
Commands for:
|
10
|
Export button |
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.
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. |
MKSJSONExportScripts.py | A Python script for reading JSON data files and graphically displaying JSON data. |
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.)
Property | Value | Units |
---|---|---|
The JavaScript scripts used to populate the table are shown below:
Python is an interpreted programming language. (More information is available at Python.org.) 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.)
Topic | Description |
---|---|
Estimating Chemical Properties | a short video demonstrating how to estimate the physical properties of pure chemical using either Synapse or Cranium. |
Estimating Mixture Properties | a short video demonstrating how to estimate the physical properties of mixtures using either Synapse or Cranium. |
Getting Started using Cranium | provides a quick tour of Cranium's capabilities including physical property estimation and a discussion of structure editing. |
Getting Started using Synapse | provides a quick tour of Synapse's capabilities including examples of chemical product design. |