If this is for any reason not a JSONObject then we get an exception thrown (and the process terminates) from the call to get_obj. I typically use json::isType<JSONObject> just to explicitly avoid this possibility.