dimanche 9 juillet 2017

Finding List of Key Names in MongoDB Query or with PHP

{
    "Name": {
        "Year": {
            "Model": {
                "SubModel": {
                    "Category": {
                        "SubCategory": [
                            {
                                "firstline": "Value1",
                                "secondline": "Value2"
                            },
                            {
                                "firstline": "Value3",
                                "secondline": "Value4"
                            },
                            {
                                "firstline": "Value5",
                                "secondline": "Value6"
                            }
                        ]
                    }
                }
            }
        }
    }
},
.....
.....

I have a JSON data like this and I can insert this data in MongoDB.

Now can i get the list of "Name", list of "Year" under a "Name", list of "Model" under a "Year", list of "SubModel" under a "Model", list of "Category" under a "Submodel" and so on?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sTOIof
via IFTTT

Aucun commentaire:

Enregistrer un commentaire