1
1
12rbah2020-04-13 16:13:40
go
12rbah, 2020-04-13 16:13:40

Why is nested JSON not being parsed?

There is JSON with attachments, in this form it turns out to be parsed, but a problem arises if JSON is enclosed in such brackets []. Why is this happening?

{
        "A": {
            "B": 400,
            "C": 137,
            "D": 615,
            "E": 352
        },
        "G": "dw",
        "F": {
            "ww": 0.123
        }
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-04-13
@12rbah

What data structure are you parsing it into? In theory, at the moment when you make an array [] from an object {}, any data structure other than the null interface will break.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question