Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
VikashMogha opened this issue Aug 9, 2023 · 2 comments
Labels
type:question Support or code-level question

Comments

@VikashMogha
Copy link

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)

@parse-github-assistant
Copy link

Thanks for opening this issue!

@VikashMogha VikashMogha changed the title getting different output json after converting parse_server_sdk_flutter: ^3.1.3 into parse_server_sdk_flutter: ^6.0.0 (Without estimatedArray" and "estimateNumber) 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) Aug 9, 2023
@mbfakourii
Copy link
Member

mbfakourii commented Aug 9, 2023

You went from version 3.1.3 to version 6.0.0.
Logically, you have to be involved in changes !

Check here

@mbfakourii mbfakourii added the type:question Support or code-level question label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

2 participants