getting different output json after converting parse_server_sdk_flutter: ^3.1.3 into parse_server_sdk_flutter: ^6.0.0 (Expected output without estimatedArray" and "estimateNumber) #962
I was using parse_server_sdk_flutter: ^3.1.3 in my project but some reason i have to update all the dependencies to latest version so i did same for the parse_server_sdk to latest 6.0.0 and made some changes to solve breaking change but now i was getting different output json from parse_server_sdk 6.0.0 even i tried with parse_server_sdk 5.0.0
If i am using below code
ParseUser.getCurrentUserFromServer() then output is coming into this way
but when i was using parse_server_sdk_flutter: ^3.1.3 then i was getting output in this way
{
"addresses": [
{
"nickName": "home 2",
"address": "right biygh. kk",
"emirates": "Abu Dhabi Emirate",
"region": "Al Ain City",
"zipCode": "1345689"
},
{
"nickName": "office",
"address": "gryhg hi my fthgvhiuji",
"emirates": "Ajman Emirate",
"region": "Ajman",
"zipCode": "fghjj"
},
{
"nickName": "MY HOME",
"address": "bludgeon b",
"emirates": "Abu Dhabi Emirate",
"region": "Khalifah A City",
"zipCode": "1100757"
},
{
"nickName": "Office 2 Address ",
"address": "sadfsad",
"emirates": "Dubai",
"region": "Yas Link",
"zipCode": "21313"
}
]}
In parse_server_sdk_flutter 6.0.0 we are getting "estimatedArray" and "estimateNumber" in json. Can i get the output same way it was in parse_server_sdk_flutter 3.1.3 by using parse_server_sdk_flutter 6.0.0 because i have already so much code done in this project to replace output overall project is not possible in short time span.
Expected output i want to be in this format in parse_server_sdk_flutter 6.0.0 without "estimatedArray" and "estimateNumber"
Flutter (Channel stable, 3.10.5, on macOS 13.0 22A380 darwin-arm64, locale en-NZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.80.2)
I was using parse_server_sdk_flutter: ^3.1.3 in my project but some reason i have to update all the dependencies to latest version so i did same for the parse_server_sdk to latest 6.0.0 and made some changes to solve breaking change but now i was getting different output json from parse_server_sdk 6.0.0 even i tried with parse_server_sdk 5.0.0
If i am using below code ParseUser.getCurrentUserFromServer() then output is coming into this way
{"addresses": { "className": "ParseArray", "estimatedArray": [ { "nickName": "home 2", "address": "right biygh. kk", "emirates": "Abu Dhabi Emirate", "region": "Al Ain City", "zipCode": "1345689" }, { "nickName": "office", "address": "gryhg hi my fthgvhiuji", "emirates": "Ajman Emirate", "region": "Ajman", "zipCode": "fghjj" }, { "nickName": "MY HOME", "address": "bludgeon b", "emirates": "Abu Dhabi Emirate", "region": "Khalifah A City", "zipCode": "1100757" }, { "nickName": "Office 2 Address ", "address": "sadfsad", "emirates": "Dubai", "region": "Yas Link", "zipCode": "21313" } ], "savedArray": [], "lastPreformedOperation": null }}
but when i was using parse_server_sdk_flutter: ^3.1.3 then i was getting output in this way { "addresses": [ { "nickName": "home 2", "address": "right biygh. kk", "emirates": "Abu Dhabi Emirate", "region": "Al Ain City", "zipCode": "1345689" }, { "nickName": "office", "address": "gryhg hi my fthgvhiuji", "emirates": "Ajman Emirate", "region": "Ajman", "zipCode": "fghjj" }, { "nickName": "MY HOME", "address": "bludgeon b", "emirates": "Abu Dhabi Emirate", "region": "Khalifah A City", "zipCode": "1100757" }, { "nickName": "Office 2 Address ", "address": "sadfsad", "emirates": "Dubai", "region": "Yas Link", "zipCode": "21313" } ]}
In parse_server_sdk_flutter 6.0.0 we are getting "estimatedArray" and "estimateNumber" in json. Can i get the output same way it was in parse_server_sdk_flutter 3.1.3 by using parse_server_sdk_flutter 6.0.0 because i have already so much code done in this project to replace output overall project is not possible in short time span.
Expected output i want to be in this format in parse_server_sdk_flutter 6.0.0 without "estimatedArray" and "estimateNumber"
{ "addresses": [ { "nickName": "home 2", "address": "right biygh. kk", "emirates": "Abu Dhabi Emirate", "region": "Al Ain City", "zipCode": "1345689" }, { "nickName": "office", "address": "gryhg hi my fthgvhiuji", "emirates": "Ajman Emirate", "region": "Ajman", "zipCode": "fghjj" }, { "nickName": "MY HOME", "address": "bludgeon b", "emirates": "Abu Dhabi Emirate", "region": "Khalifah A City", "zipCode": "1100757" }, { "nickName": "Office 2 Address ", "address": "sadfsad", "emirates": "Dubai", "region": "Yas Link", "zipCode": "21313" } ]}
Flutter (Channel stable, 3.10.5, on macOS 13.0 22A380 darwin-arm64, locale en-NZ) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.80.2)