simplify json serializing