I have a question regarding Protobufs, since I want to generate an array of
JSONs by using them, such as in this example
> [
> {
> "var": ["myVariable1","myVariable2"],
> "key1": 123123,
> "key2": 1122,
> "key3": "abcd-0101"
> },
> {
> "var": ["myVariable1"],
> "key1": 123124,
> "key2": 1123,
> "key3": "abcd-0102"
> },]
>
>
However, I just can get the example below:
> {
> list: [
> {
> "var": ["myVariable1","myVariable2"],
> "key1": 123123,
> "key2": 1122,
> "key3": "abcd-0101"
> },
> {
> "var": ["myVariable1"],
> "key1": 123124,
> "key2": 1123,
> "key3": "abcd-0102"
> },]
>
> }
>
>
It is possible to generate the first example (without the brackets and the
first key) using protobufs?
Some of this issue are also discussed in:
https://stackoverflow.com/questions/46945555/how-to-model-json-array-as-protobuf-definition,
they also had the same question, but I tried and did not work at all!
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/c7a2f615-e53f-47e5-86d7-75d6aa3b5f69%40googlegroups.com.