4 ms·
> If keys in your input contain dots, what will grep and awk do to help you out? Without knowing gron, I presume the dots are escaped/quoted properly, and you
by anyfoo 8y ago
> If keys in your input contain dots, what will grep and awk do to help you out?
Without knowing gron, I presume the dots are escaped/quoted properly, and you would do the same in your grep/awk usage.
What if your keys contain equal signs and curly braces, how will json help you out?
> Meanwhile, the JQ tool could do your greppings and awkings but preserving and perusing the structure of the document notwithstanding its idiosyncrasies.
The structure of the data is preserved (I don't know what you mean with "notwithstanding its idiosyncrasies"). This is just a different, albeit redundant, but entirely equivalent representation of the same document. Despite their redundancy, denormalized representations do have advantages.
- aasasd 8y ago> I presume the dots are escaped/quoted properly, and you would do the same in your grep/awk usage. Oh yeah, that's certainly much easier than having a tool's parser deal with the syntax, and just working with individual keys and values instead. So much so that in fifteen years of programming I haven't seen anyone remember to include escape-sequences in their regexps. But I guess for true lovers of regexps it's just a joy to keep escaping the escape sequences that they put in, and then escaping the result once over in the coding language of choice. > What if your keys contain equal signs and curly braces, how will json help you out? Care to clarify why that would be a problem?