replace deprecated json_object_object_get() function