active_model_serializers
active_model_serializers copied to clipboard
Is there a way to display meta tag at first instead of root
When I use like below
render json: users, root: "users", meta: {content: "10"}, meta_key: 'message', adapter: :json
I get response as
users: [
{
id: 1,
name: "John"
}
],
message: {
content: 10
}
Is there a way to display the message and then users as below?
message: {
content: 10
},
users: [
{
id: 1,
name: "John"
}
]
@karunakaranpt don't you think both ways read as identical? btw I am not aware if we can do that.