gwt - Is elemental json is not compitable with google gson? -


my application's vaadin version upgraded 7.3.6 7.4.6 , json code wherever using gson starting break.

i did googling same found similar issue mentioned in stackoverflowpost

so should conclude elemental.json not compatible gson , org.json compatible gson.

gson not gwt compatible, makes sense since requires reflection work. likewise, org.json meant used on normal jvm.

on other hand, gwt knows running in browser, doesn't need implement own json parser, since browser has one. there several ways use json in gwt, , gson, org.json, , built-in json parser of browser speak same json.

all compatible each other, though can't use elemental on server or gson on client, or reuse same server types on client.

what 'starting break'? errors get, , data trying send like?

(also worth noting, of 'json' in linked post uses ' quotes properties , strings, not legal json , should not work in first place proper json parser.)


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -