List Manipulation based on JSON Input
Asked at Ironclad · Coding Questions · Difficulty: Medium
Given a JSON input, a JSON edit, and an expected JSON output, transform the input JSON into the output JSON. Both input and output are lists of objects, and the operation involves list index manipulation. You need to modify the input list according to the edit operations provided to produce the output list. Assume you have a method to convert JSON to a data model. Write a function to accomplish this task.
Loading the problem…