← Questions

Validate a JSON-like string

0
MicrosoftCodingLast asked Jan 2026

Write a validator that decides whether a string is well-formed JSON-like text: balanced braces and brackets, quoted keys, commas and colons in the right places, valid values. Explain whether you use a stack or a recursive-descent parser. Only the title of this report was public.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding