开发者

Unable to create json using gson

I have to make dynamic hashes, so the class example won't work since the class variables are static. I am s开发者_运维百科ending in a hashmap object to toJson but it isn't working. Any suggestions on what to do?


If you can't work out the Gson problem, you might look at Crockford's JSON classes for Java, they deal with this exact use case. Not an answer for the Gson issue, though; just an end-run.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜