Simplify the json object by adding type specific put and replace