Software Engineer • Junior-Level
Software Engineer • Junior-Level
High QualityInterview Summary
The Listen Labs technical phone screen was a CoderPad exercise implemented in Python. The problem involved parsing partially received JSON from an LLM streaming response rather than waiting for the entire JSON document to arrive. The supported JSON subset was intentionally small: only strings and arbitrarily nested arrays needed to be handled. The parser still had to return all meaningful content received so far when the input ended in the middle of a string, before an array was closed, or immediately after a comma.
Interview Details
Coding — Parse Incomplete Streaming JSON
Assume an LLM is streaming JSON output character by character. At any moment, the parser may receive only a prefix of the final JSON document. Implement a parser that converts the currently available text into the corresponding partially reconstructed data structure. Only two JSON value types need to be supported:
- Strings
- Nested arrays
Objects, numbers, booleans, and other JSON types do not need to be handled.
-
Partial Strings
A string may be cut off before its closing quote arrives. The parser
Unlock Full Details
Create a free account to unlock this interview experience report.