simplify json serialization