Be compatible with Rails to_json
Reported by Jeroen van Dijk | January 31st, 2011 @ 07:02 AM
The default way to serialize records to JSON in Rails gives the following JSON structure:
[{ "user : { "field1":"value1"}}]
Instead of the Restfulie way:
{"users: [{"field1":"value1"}]}
In order to migrate more fluently from the default Rails way to
the Restfulie way it would be nice if the Rails style could be
easily achieved with the Tokamak dsl. And as Guilherme pointed out
on the mailing list: "the first one allows
multiple types within the array..."
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »