Hi Folks,
(SmartGWT - 2.5).
I am trying out a piece of code which where i need to serialize a Hashmap content to JSON and send it across to a server.
I tried using the following snippet,
but it seems to fail with,
java.lang.reflect.InvocationTargetException
com.google.gwt.core.client.JavaScriptException: (String): 4.43846607925724E-304
Any idea why this could be failing and is there any other way in SmartGWT to achieve this (object to JSON conversion). I have used 3rd party libraries for this in the past, but if its available within SmartGWT itself, that would be ideal.
Thanks,
Vikram
(SmartGWT - 2.5).
I am trying out a piece of code which where i need to serialize a Hashmap content to JSON and send it across to a server.
I tried using the following snippet,
Code:
JSONEncoder j = new JSONEncoder(); String jsonData = j.encode(mapData);
java.lang.reflect.InvocationTargetException
com.google.gwt.core.client.JavaScriptException: (String): 4.43846607925724E-304
Any idea why this could be failing and is there any other way in SmartGWT to achieve this (object to JSON conversion). I have used 3rd party libraries for this in the past, but if its available within SmartGWT itself, that would be ideal.
Thanks,
Vikram
Comment