PDA

View Full Version : DataWriter: POST data as URL rather than JSON



metra
3 Mar 2010, 10:30 AM
Currently I'm using a jsonWriter that outputs data as:


{"data":{"name":"a","description":"a","title":"a"}}

Instead, I'd like the output to be:


name=a&description=a&title=a

Note that I did not include the root, "data".

Does Ext provide built in functionality for this?

metra
3 Mar 2010, 11:31 AM
bump, anyone?

Mike Robinson
4 Mar 2010, 8:24 AM
JsonWriter is what JsonWriter is.

It isn't clear from your message in which direction this "output" is pointing: toward the host, or back towards you?

Nevertheless: the object is constructed as it is constructed, for reasons that may not be apparent to you now.