json - Transforming JSONArray string to Java POJO -
i trying fiddle objectmapper's properties achieve following, did dot find way till now
context : we've following classes class x { : } class c { private string c1; private string c2; private list<x> c3; } input : string represents jsonarray. ex : "[ {..}, {..} ]" output : java class 'c' c1, c2 set null , c3 set input
i not want transform input json string first , create instance of c myself , set c3 manually. can deserialize input json string described above
Comments
Post a Comment