← Questions

Render nested JSON in a code-style viewer

0
SpaceXAICodingLast asked Sep 2026

A coding interview question asked in SpaceXAI's onsite applied coding round, last asked Sep 2026. It tests react, frontend and recursion.

Build a read-only React component that shows a JSON value the way a code editor would: indentation, braces and brackets, keys and values coloured by type, and objects and arrays that can be collapsed and expanded. Content is always shown…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

react · frontend · recursion

Your code and the AI tutor open when you unlock this question.