When using the json-cli tool, it removes comments from formatted code.
Using the following example file:
/*
A multi-line
comment
*/
{
employer: “Yambee” // inline comment
address: “98563 Bobwhite Trail” # another inline comment
description: “bibendum morbi non quam nec dui luctus rutrum nulla tellus in”
}
Running hjson-cli test.hjson returns:
{
address: 98563 Bobwhite Trail
description: bibendum morbi non quam nec dui luctus rutrum nulla tellus in
employer: Yambee
}
Removing the comments written above
When using the
json-clitool, it removes comments from formatted code.Using the following example file:
Running
hjson-cli test.hjsonreturns:Removing the comments written above