← Questions

JSON merge API with pluggable merge behaviors

0
TeslaCodingLast asked Aug 2026

Design and implement a function that merges two JSON documents, where the way conflicts are resolved is pluggable: for example, how two objects, two arrays or two different scalar values under the same key are combined. Show the default behaviors, how a caller plugs in its own, and how nested structures are handled.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding