The serializing counterpart to json-parser.