Update to have a jsonObject method also