No, unfortunately I don't think that is supported. You can set the
json_name field option in your .proto file to specify the field name to be
used for JSON, but you can't specify more than one name for a field.
On Wed, Aug 14, 2019 at 4:00 PM Ma N wrote:
> let's say 2 jsons have different keys b
let's say 2 jsons have different keys but map to the same key in the
buffer, for example:
{
keyA:1,
keyB:5
}
should map to a buffer containing:
{ quantity: 1, cost: 5 }
and:
{
keyC:5,
keyD:10
}
should map to a buffer containing:
{ quantity: 5, cost: 10 }
as you can see both "KeyA", "K