You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To implement a json-rpc protocol, there are three steps.
First parse the json text to find the callee function and parameter types,
Second, based on type discoverd in first step, deseriallize sub-parts of
json text into different object.
Third, convert result and other logging info into json.
gson only provided to object to json api, make it hard to do the first
and third step.
This request to split the json to object into two pass.
1\ convert json text to json element tree.
2\ convert json element tree to object.
And split the object to json into two pass.
1\ convert json element tree to object.
2\ convert json text to json element tree.
Is it possibel to add something like
public JsonElement toJsonElement(Object src, Type typeOfSrc);
and
public JsonElement toJsonElement(string json);
Thanks.
I have a example.
Original issue reported on code.google.com by yufanyu...@gmail.com on 28 Mar 2009 at 1:20
Original issue reported on code.google.com by
yufanyu...@gmail.com
on 28 Mar 2009 at 1:20Attachments:
The text was updated successfully, but these errors were encountered: