Hi All,

Currently in WSO2 MDM device list API (mdm-admin/devices/{userId})

 Properties are getting as a objects in an array like following

"properties": [
            {
                "name": "imei",
                "value": "310260043444000"
            },
            {
                "name": "imsi",
                "value": "3102644300000"
            },
            {
                "name": "model",
                "value": "Google Nexus 5"
            },
            {
                "name": "osVersion",
                "value": "5.0"
            },
            {
                "name": "vendor",
                "value": "Genymotion"
            }
        ]


This is cumbersome when searching for a value of a property, because it
needs be to looped through the whole array. Would be easy if  it can be
presented  as a whole object with key value pairs like follows

"properties" : {
      "imie" : "434243242432434",
      "imsi"  : "643534242424243",
      "model" : "Google Nexus 5"

}



-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.**)*
www.dilan.me
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to