manual merging of JSON