它有一个JsonUtils类,它是ObjectMapper类的瘦 Package 器。但该库依赖于Json-Jackson的特定版本。将其添加到部署中并尝试使用JsonUtils.writeObjectToJsonString(rootObj)。如果我的想法是正确的,你的问题就不会发生。如果是这样的话,你可以把它作为一个解决方案,或者进一步调查你的问题的根本原因。这里是JsonUtils javadoc。该库可以作为Maven artifact或...
All of the projects in the Shootout support this compile-time safety except for ObjectMapper and Gloss. Protocol Extensions vs. Wrappers Many of these frameworks work by wrapping a dictionary in another object. Marshal differs in that it is implemented as a protocol with a protocol extension. ...