3 ms·
> Because the path components are separated by / characters, an object key like "abc/def" would result in ambiguous output. jsonpipe will throw an error if this
by wnoise 16y ago
> Because the path components are separated by / characters, an object key like "abc/def" would result in ambiguous output. jsonpipe will throw an error if this occurs in your input, so that you can recognize and handle the issue. To mitigate the problem, you can choose a different path separator:
Ugh. I should never ever have to pick details of the format to work around content in the format. The only real solution is escaping, though it does add complexity.
- asymptotic 16y agoHahahah he uses a Unicode snowman as his example delimeter! $ echo '{"abc/def": 123}' | jsonpipe -s '☃' ☃ {} ☃abc/def 123 I'm ready to face the day with a smile on my face.