simplify json marshalling