Open gustavnikolaj opened 9 years ago
I considered hacking it by adding sidecar-values to all imported keys;
1.json
:
{
"#include": "2.cjson",
"foo": "bar",
"foo#origin": "1.json"
}
2.json
:
{
"baz": "qux",
"baz#origin": "2.json"
}
It messed the files quite badly for re-use, but it does get the desired output without messing around building a AST of any sort, having a cjson writer with comments (though one could be retrofitted on this) or any such things.
Where did the line come from?
yields