Hi.
I am working in GWT. Currently my requirement is simple. I want a JSON in following format:
{":question" : { ":id":"123", ":question_text":"some text", ":nodes":["123","111"]}}
I need to create an object in GWT code such that when I use jquery's json plugin to parse that object; I should get above listed json. This json needs to be sent to a remote service.
Currently I have tried using Java Hashmaps and Java custom objects modelled for these attributes but they always seem to have metadata in generated JSON and I am just not able to get this format.
It would be great if someone could suggest how I could go about modelling this data object such that I was get a JSON parsed as expected.
Or can I just write a simple custom JSON parser in Javascript? How do I do that?
cheers -Priyank