I'm trying to model this JSON into ProtoBuff reply:
{ 
 "0xc02aaa39b223fe8d4a0e5c4f27ead9083c756cc2": "73185315951404654", 
"0x111111111117dc0aa78b770fa6a738034120c302": "90483392540197705773", 
"0xdac17f958d2ee523a2206206944597c13d831ec7": "2599292593",
 }

Tried to use map:

message Reply { map<string, string> balances = 1; }
but ended up with this error message: 
Object literal may only specify known properties, and 
'0xc02aaa39b223fe8d4a0e5c4f27ead9083c756cc2' does not exist in type 'Reply'.

Is there a way to return this type of JSON?


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/efabc47a-0c6d-4bd6-a152-0fc29a7a60c6n%40googlegroups.com.

Reply via email to