Fixed issue with multiple levels of json objects