Replaced map string with a json object.