0

I have a nested json array looking like this:

[
    [
        [
            [1234.5 ,9876,5],
            [1234.5 ,9876,5]
        ],
        [
            [1234.5 ,9876,5],
            [1234.5 ,9876,5]
        ]
    ],
    [
        [
            [1234.5 ,9876,5],
            [1234.5 ,9876,5]
        ],
        [
            [1234.5 ,9876,5],
            [1234.5 ,9876,5]
        ]
    ]
]

I already saw many posts with answers if you have named keys in objects. However I just have large, nested array's. How should you make objects which can store this in c#? The length of the array's can vary.

2 Answers 2

1
List<List<List<List<int>>>>
Sign up to request clarification or add additional context in comments.

1 Comment

sorry, didnt notice you had floating numbers there
1

Thanks for the start @user2033402

Using the package "NewtonSoft" i got it working using the following line as an example:

var results = Newtonsoft.Json.JsonConvert.DeserializeObject<List<List<List<List<double>>>>>(nestedJsonarray);

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.