InterviewDB Experience

JSON Conversion: Convert Between JSON and a Custom Flat Key-Value Notation

Interview Experience

Problem Implement bidirectional conversion between nested JSON and a flat dot-notation key-value format. Nested keys are joined with .; array indices use bracket notation. Example: Follow-ups How do you handle key collisions when a path could be both a leaf and a subtree? How do you distinguish between a string value "10" and an integer 10 in the flat format? How would you extend this to support mixed arrays (arrays containing both objects and primitives)? What is the maximum nesting depth your…

Full Details

🔒

Unlock all Nextdoor questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a nextdoor interview during the phone round.

It covers the following topics: Strings, Phone, Recursion, Coding, Arrays .