I have a field on an object that is JSON. I can save this as a String but then when I use Jackson to serialize it and send it up to my server, the JSON is treated as a string and escaped. I'd like to send it up as actual JSON. I've made my getters and setters on the model use JSONObject even though the field is a String, and this makes ORMLite happy but now I'm getting errors when using Jackson for serialization. How can I store JSON via ORMLite and send it unescaped via Jackson (on Android)?
问问题
1213 次