Skip to content

Releases: spmbt/jsonComm

3 functions in jsonComm object

Choose a tag to compare

@spmbt spmbt released this 18 Jan 01:07

jsonComm object with 3 methods supports jsonComm data conversions to JSON (in javacript).

  • unComment: remove trailing comments and multiline comments in JS style from multiline string of jsonComm data format;
  • comm2json: converts jsonComm data to valid JSON with save of comments near key:value pairs as values;
  • change: changes keys and values in jsonComm data format without touch of comments and another (valid or not valid) text in file.