If you are using the Jackson project to parse JSON files than I recommend to use the “@JsonIgnoreProperties” Annotation. Assume that you have a JSON String like this, with 2 properties: { “name” : “mike”, “sex” : “male” } If you want to parse that with Jackson, you have to create a classContinue reading “JsonIgnoreProperties”
Tag Archives: JSON
JsonAnySetter
I am using the Jackson JSON Lib in Java to process JSON. If you don’t know how JSON works in Ruby, you will like this project. Anyway. If you have dynamic JSON stream where the property names are not always the same, than you need the “@JsonAnySetter” Annotation. With that you can map dynamic Properties to aContinue reading “JsonAnySetter”