-
Type: New Feature
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: V4.0_ERRATA02
-
Fix Version/s: V4.02
-
Component/s: CSDL XML, JSON Format
-
Labels:None
-
Proposal:
There are scenarios where it's convenient to represent something as an array of arrays. In JSON this would look as:
[["foo1","bar1"],["foo2","bar2"]]
or
[[
,
{"bar":"bar1"}],[
{"foo":"foo2"},
{"bar":"bar2"}]]
Currently services must represent these as arrays of complex types that have array properties. In JSON, the result looks like:
[
{"value":["foo1","bar1"]},
{"value":["foo2","bar2"]}]
or
[{"value":[
,
{"bar":"bar1"}]},{"value":[
{"foo":"foo2"},
{"bar":"bar2"}]}]
If we are trying to make JSON representation as close as possible to a custom representation we would need to support the former syntax (without the "value" objects).
One problem with arrays of arrays in JSON is that we don't have a way to annotate the (array) items within the array. For example, we couldn't add count, nextLink, etc. for the inner arrays..