Romik romikromik Romik romikromik - 2 years ago 84
JSON Question

jackson. if string named like numerical value

Have some json

"car": {
"0": "bentley cont",
"1": "2.5",
"2": "2015"

What i have to do for work with it. How correctly realize this.

enter image description here

Answer Source

You can do this if you are using Jackson:

    private String _0;
    private String _1;
    private String _2;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download