subscribeUpdate function over REST with a JSONObject