Need help to store nested json format into database and get the correct output

I’m using leaflet.js and want to store the following json format into database. I’m particularly clueless on how to input the sub object with array into database and later output it into this exact structure. Any help is much appreciated.

    {
                "type": "Feature",
                "geometry": {
                    "type": "LineString",
                    "coordinates": [
                        [-105.0008225440979, 39.751891803969535],
                        [-104.99820470809937, 39.74979664004068]
                    ]
                },
                "properties": {
                    "popupContent": "This is a free bus line that will take you across downtown.",
                    "underConstruction": true
                },
                "id": 2
            }
Community Page
Last updated: