Home > OS >  Java background how to parse complex json string
Java background how to parse complex json string

Time:09-26

{" StartTime ", "NOW", "EndTime" : "NOW", "SampleFrequency" : 60, "SampleMethod" : "Snapshot", "the RowCount" : 1, "Defs" : [{" Tagname ":" CYB's. 1 sto4. AT151_1. PV ", "Name" : "CYB's. 1 sto4. AT151_1. PV", "Description" : "T151 tin west combustible gas alarming device"}, {" Tagname ":" : CYB. 5 sto4. PIA604. PV ", "Name" : ": CYB. 5 sto4. PIA604. PV", "Description" : "604" TANK}], "Rows" : [{" CYB's. 1 sto4. AT151_1. PV ": {" V" : 9.768011 e-02, "T" : "the 2019-10-29 14:48:18", "C" : 100, the "U", "% LEL}", "CYB's. 5 sto4. PIA604. PV" : {" V ": 1154.394," T ":" the 2019-10-29 14:48:18 ", "C" : 100, the "U" : ""}}]}



Like this kind of nested and more complex json string, how to parse into a set

CodePudding user response:

Fixed format, use Java parse? Slowly?

CodePudding user response:

Settled, I the string is just an object, rather than the collection,
  • Related