moraleslos
New member
- Joined
- Apr 30, 2013
- Messages
- 2
- Programming Experience
- 3-5
I'm using WCF on my VB services to return JSON and am running into issues where I can not reproduce a particular format. The JSON I would like returned looks something like:
{
If I used a class that contains a List(Of List(Of String)) or a multi-String array, to be returned by WCF the output always looks like:
{
The JSON translation adds the step of the list/array into the JSON string.
Any ideas on how to produce the appropriate JSON output with WCF and VB?
{
tuples: [
[[north,1.8,2.5],[south,1.3,-1.4],[east,1.1,0]],
[[north,1.9,2.4],[west,10.34,4.76]]
[[north,1.9,2.4],[west,10.34,4.76]]
]
}If I used a class that contains a List(Of List(Of String)) or a multi-String array, to be returned by WCF the output always looks like:
{
tuples: [
[0: north,1.8,2.5, 1: south,1.3,-1.4, 2: east,1.1,0],
[0: north,1.9,2.4, 1: west,10.34,4.76]
[0: north,1.9,2.4, 1: west,10.34,4.76]
]
}The JSON translation adds the step of the list/array into the JSON string.
Any ideas on how to produce the appropriate JSON output with WCF and VB?