0

I have started to use retrofit to work with json, using jsonschema2pojo to generate my models. But i faced a problem that one field in Json can be array as well as object. Can somebody give me advise how to solve this?

1 Answers1

0

I found solution. If there is a multiple choice beetwen array or object, need to change problem field class to JsonElement, change args in setters,getters and the model will be created and avalible to use.