TL; DR : PUT /users/1 with user="{name: 'John'}" , unlike user[name]="John" , OK?
I love REST. I recently discovered that I store a lot of my data in client-side JavaScript objects. They seem to convert them into parameter forms like
user[name] = "John", user[login] = "jdoe"
superfluous freak, because they will simply be restored on the server somehow like
{user: {name: 'John', login: "jdoe"} }
Internet tips? Should I make a framework for me? Should I use JSON? Should I use BSON instead, since it saves types like Date? :)
source share