Home:ALL Converter>Retrieve data from inner document embedded in array

Retrieve data from inner document embedded in array

Ask Time:2016-06-23T15:49:07         Author:Ramya

Json Formatter

How do I retrieve data from inner document embedded in array in MongoDB using Spring?

{
    "project" : "proj001",
    "sourcevo" : [ 
        {
            "name" : "HpAlm",
            "type" : "database",
            "source" : "mysql",
            "toolvo" : {
                "url" : "https://123.com",
                "userName" : "123user",
                "password" : "password"
            },
            "dbvo" : {
                "servername" : "",
                "userName" : "",
                "password" : ""
            }
        }
    ]
}

Author:Ramya,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37985313/retrieve-data-from-inner-document-embedded-in-array
yy