Ruby JSON: always accept both camelCase and original field names.
For JSON encoding we provide a new option to decide at encode time whether to use camelCase or original proto field names: json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
Showing
Please
register
or
sign in
to comment