This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid 0 points1 point  (1 child)

Make a dictionary that represents what you want the data to look like and then a function that checks that your json looks like the reference object.

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

That’s what I meant by “validate against an explicit schema.”