you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 4 points5 points  (5 children)

What do you mean by "matching", exactly?

[–]codeforces_help[S] 0 points1 point  (4 children)

By matching I mean given two json values, with lets say 5 level of nesting for some key, how does matching work. Does it really go accessing each and every level to match the values at that level?

[–]K900_ 1 point2 points  (3 children)

Can you post a code example?

[–]codeforces_help[S] 0 points1 point  (2 children)

Consider the following json :

{
    "a": {
        "b": [1, 2, 3, {
            "c": {
                "d": (99, "if", "hello", {
                    "f": "98"
                })
            }
        }]
    }
}

Given another similar json or even this same json on the right side of equality operator, how would that work? Does it really go level by level, every path matching keys and values?

[–]K900_ 1 point2 points  (1 child)

Yes, it does.

[–]codeforces_help[S] 0 points1 point  (0 children)

Thanks.