I have the following line of code in my controller:
render json: {token: user.token}, status: 200
It used to respond as below: (root node is disabled by default)
{'token': 'ace814a7dd50acda5a76ff7e4c9f7252'}
Now I get the result as an array and that doesn't work for me.
[["token", "ace814a7dd50acda5a76ff7e4c9f7252"]]
How can I configure my Rails application to get my previous behavior back?