Merge API interview question

Create a json object from some input