Leetcode 2633. Convert Object to JSON String
Implement a JSON serializer that converts a nested data structure (primitives, strings, arrays/lists, and objects/maps, plus null/boolean) into a valid JSON string. The core challenge is correct traversal/serialization (typically via recursion or an explicit stack) while handling string escaping and formatting edge cases.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Mid December, 2025
Meta
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.