阅读背景:

如何将LinkedTreeMap转换为gson JsonObject

来源:互联网 

For a java data handler, I send properly formatted JSON, but a combination of Spring, Java deciding how to cast what it sees, and frameworks I really shouldn't go changing mangle that JSON so that once I can see it, it's turned into a LinkedTreeMap, and I need to transform it into a JsonObject. This is not to serialize/de-serialize JSON into java objects, it's "final form" is a gson JsonObject, and it needs to be able to handle literally any valid JSON. For a java data handler, I send properly format




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: