I'm trying to create a Parameter request with Multiple Key Value Dictionary and it's creating perfectly. But every time dictionary is created with random Key - value order. How to Sort or order with respect to Dictionary Keys. Example :
[
"mbappdetails": [
"locationdtls": [
"ipAdress": "100.105.100.6",
"locationDtl": "NaviMumbai,Maharashtra",
"longdtl": "73.0152077",
"latdtl": "19.1112212"
],
"appdtls": [
"appregflg": "00",
"appid": "com.mmcompany.nstapp",
"applversion": "1.0.70",
"pushnkey": "cVCzsSyxCLr4l5JPElHWLDiNuoQJcbFmRlN5LFWZM9hN5lYYZnJy_4Kvvu2_fAjBXhGxbKpt"
],
"devicedtls": [
"deviceserial": "ExtEYNBSO8D85KR7DCEIOSHH",
"devicemodel": "iPod Touch 6",
"os": "iOS",
"simflag": "N",
"devicesdkversion": "12.10",
"deviceproduct": "iPod Touch 6",
"deviceid": "XXXXX-A2F5-XXXX-8EAC-XXXXX",
"devicemake": "iPod touch",
"rootflg": "N",
"devicebrand": "APPLE",
"osVersion": "12.1.4"
],
"channelid": "XXXXXXRRRRRR"
],
"token": "myToken",
"signcs": "encrypted_dictionary_key_values_with_signature_key"
]
Order Should be : channelid,appdtls,devicedtls,locationdtls,token,signcs
Output must be in Dictionary ONLY.