-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Description
I'm trying to consume an API that returns data in the format below but I can't seem to get parse_root_in_json to parse it properly. Any ideas why this isn't returning anything?
// GET /users
{
"data": [{"id": 1234, first_name: "user1"}, {"id": 1234, first_name: "user1"}, ...]
}My model:
class User
include Her::Model
parse_root_in_json :data
endI've also tried parse_root_in_json true, format: :active_model_serializers and root_element :data but nothing seems to work
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels