json, an output representation, first pass