I have a json data file fetched from a cloud like such:
{
"timestamp":1526005337995,
"data":[
{
"_id":"ByWpiEKaM",
"data":"N12E00008",
"raw":[78,49,50,69,48,48,48,48,56],
"timestamp":1525398457512
},
}]}
the file is where sensor data is stored from an Arduino microcontroller and sent to the cloud using a gateway. I'm trying to understand how to convert the data string "N12E00008", where N12 is the project ID, E for Moisture (we also have G for temperature). and the last 2 digit (08) indicating the values extracted from the sensors (8% moisture e.g).
I'm new to JSON and I'm also aware that you can apply the data into a $variable and decode it, however, are what are the procedures to breakdown the "N12E00008" string where the web application can recognise which section of the string is data and information. I am using mySql for database and also in the midst of trying to write a php script to auto decode the values of the data.