added leaf_json_object to reduce the call of json_object_object_get; thank you haeger