NASA Logo, National Aeronautics and Space Administration
SPDF

CDF-JSON


CDF support has expanded its external interface to include JSON (JavaScript Object Notation) form, a lightweight data-interchange format. CDF data can be presented in JSON, which is a text format that is completely language independent and easy for humans to read and write. It is also easy for machines to parse and generate.

The Tools

  • CDF2Json - Presents the contents of a CDF file into a CDF-specific JSON form.
  • Json2CDF - Creates a CDF file from a CDF-specific Jason file.
These two utilities are bundled in cdfjson.jar that is included in the standard CDF distribution package. cdfjson.jar is also available as a separate download from the Unix/Linux distribution directory. These tools are based on CDF's Java APIs and its JNI. CDF needs to be installed to run the tools.

There are other dependent jar files and supporting java programs as well.

Downloads