fix parse error
json pretty printing in canonical order

(aeson does incoherent instances, so who knows where this will lead...)