Skip to content

pure json data to jsonb field #3

@edib

Description

@edib

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": "..."
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions