← Questions

JSON merge API with pluggable merge behaviors

0
TeslaCodingLast asked Aug 2026

A coding interview question asked in Tesla's technical phone screen, last asked Aug 2026. It tests api design, json and extensibility.

Design and implement a function that merges two JSON documents into a new one, without changing either input. Objects merge key by key, recursively.

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

  • Tesla · Technical phone screen · Last asked Aug 202645 min · 10 to 20 minutes on your background, then one compact coding, debugging or design task in CoderPad that must run

What it tests

api design · json · extensibility

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