json_object_object_get is deprecated. using json_object_object_get_ex