updated to only one type of jsonObject