I would like to create a JSON proto3 compliant string including a section like this:
"foo": [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]
I can't figure out how to do it. This seems to be a List<List<T>> problem (that has been discussed) but when I feed such a solution to Newtonsoft Json.NET I get:
"foo": [ "bar": [1.0, 2.0], "bar": [3.0, 4.0], "bar": [5.0, 6.0]]
I tried only "Newtonsoft Json.NET" but the question is open to any other JSON libraries or custom coding methods. How can this be done?
EDIT: This is a serialization problem. I have no control over the deserializer code.