On Tuesday, 8 August 2017 08:06:47 UTC+1, LEE MONKEY wrote:
>
> Use funcation  toString() RepeatedField<T> - > default JSON formatter.
> Then How to JSON formatter -> RepetedField<T> OR IList??
>
>
> https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/collections/repeated-field-t-
>

Looking at JsonParser, I don't think there's anything there at the moment - 
the intention is that JsonParser and JsonFormatter are really present so 
that you can parse/format whole messages, where repeated fields are just 
*part* of a message.

Now you could fake it up by creating a message which has a repeated field 
of the right type, add `{ 'field': ` to the start, then put your array 
JSON, then add `}` to the end, but that's a bit hacky.

Is there any reason you're serializing just the repeated field rather than 
a whole message? 

-- 
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 post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to