I have following data posted as a json and I want it to put into a single jsonb field.
How can I achieve that?
[
{
"sensors": [
{
"type": "air_sensor",
"temperature": 2,
"humidity": 45,
"code": "dht11",
"id": 10001
},
{
"type": "soil_sensor",
"soil_moisture": 354,
"code": "EIS10698",
"id": 10002
}
],
"id": "324sre43bv5345v45v346tvb3",
"mac": "..."
}
]