Hi, a "standard pretty JSON" is very important, as "easy diff" and "universal human-readability", so canonicalJSON + prettyjson is a good solution, even for digital preservation.
Using chmod 777 prettyjson.awk and ./prettyjson.awk file.json at UBUNTU 16 LTS, it is causing error
"awk: run time error: regular expression compile failed (missing operand)".
PS: a complement for prettyjson is, for checksums, to pipe with some stripSpaces.awk before hash generation.
Hi, a "standard pretty JSON" is very important, as "easy diff" and "universal human-readability", so canonicalJSON + prettyjson is a good solution, even for digital preservation.
Using
chmod 777 prettyjson.awk
and./prettyjson.awk file.json
at UBUNTU 16 LTS, it is causing error "awk: run time error: regular expression compile failed (missing operand)".PS: a complement for prettyjson is, for checksums, to pipe with some
stripSpaces.awk
before hash generation.