gibson042 / canonicaljson-spec

Specification of canonical-form JSON for equivalence comparison.
http://gibson042.github.io/canonicaljson-spec
18 stars 9 forks source link

awk error #1

Closed ppKrauss closed 6 years ago

ppKrauss commented 6 years ago

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.

gibson042 commented 6 years ago

Thanks for the report; I've confirmed the awk incompatibility and am fixing it now.