unmarshalling nested json without knowing keys jaxb java -


i fairley new java , jaxb , stuck on unmarshaling json structor this, cant find way create randomeaccount , randomsubacc objects values nested in them can unmarshalled.

{   "visit_id": "56602e810ef9d7487eef9f282e9e2f53",   "skills": {     "accounts": {       "randomaccount": {         "randomsubacc": {           "default": true,           "enabled": false         }       }     }   }   } 

here's have far skills class (it not xmlrootelement) , not know how define

@xmlaccessortype(xmlaccesstype.field) @xmltype(name="skills") public class skills {     private accounts accounts;      public accounts getaccounts() {         return accounts;     }      public void setaccounts(accounts accounts) {         this.accounts = accounts;     }      @override     public string tostring() {         return "skills: accounts=" + accounts;     } } 


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -