Saturday 4 May 2019

java - I have a JSON string with some arrays in it. I want to iterate and get their elements and their values. This is how my file looks like:

{
"results": [{
"statement_id": 0,
"series": [{
"name": "sampleMeasurement1",
"columns": ["time", "disk_type", "field1", "field2", "field3", "field4", "hostname"],
"values": [
["2018-02-28T06:50:35.435Z", null, 12212, 22.44, "thisIsString", false, "server001"],

["2018-02-28T06:50:35.464Z", "HDD", 112, 21.44, "thisIsString1", true, null],
["2018-02-28T06:50:35.497Z", null, 12212, 22.44, "thisIsString", false, "server001"],
["2018-02-28T06:50:35.572Z", "HDD", 112, 21.44, "thisIsString1", true, null]
]
}]
}]
}

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...