added merge function
simplified json