Merge json and input data.