strip out checks for repeated keys in generated json. no one cares
about repeated keys
reorder parser clauses and simplify escaping for performance