0

I would like to know if this is a valid Json structure its just an array of objects with no attribute name
I used jsonlint and it says Valid JSON

How to represent the same in java?

[
   {
    "printerId": "100",
    "printerStatus": true,
    "error": null
    },
    {
    "printerId": "150",
    "printerStatus": false,
    "error": "no power"
    },
    {
    "printerId": "180",
    "printerStatus": false,
    "error": "Ink Levels Low"
    }
]
Hovercraft Full Of Eels
  • 283,665
  • 25
  • 256
  • 373
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159

0 Answers0