File Conversion Scripts

DccJsonToolkit allows bidirectional file conversion DCC — JSON. It provides a clean interface through the scripts dcc2json and json2dcc.

Both scripts provide the same arguments, the main difference is the used naming to invoke them.

dcc2json

dcc2json [-h] [-o OUTPUT_PATH] [--no-cache] INPUT_FILE

The command dcc2json converts a complete DCC file into a JSON file.

json2dcc

dcc2json [-h] [-o OUTPUT_PATH] [--no-cache] INPUT_FILE

The command json2dcc creates a complete DCC file from a JSON file.

Warning

The script does not convert among DCC versions. If the input is structured for a DCC v3.3.0, this cannot be automatically converted into a file with the rules from v3.4.0-rc.2

Arguments

INPUT_FILE

Local path to the input file to convert. The file must have the correct extension based on the script:

  • dcc2json requires an .xml file.
  • json2dcc requires a .json file.

-o, --output-path

Local path to the output file or folder. If the provided path is a folder, the output file will take the same name as the input file but with the respective extension. The default value is set to "." (current working directory).

--no-cache

Argument to ignore all cache files and work directly with online imports.