NickF
NickF

Reputation: 5737

Android Volley JSON response

In my Android app I'm using Volley library.
I'm calling some service that returns json where one field called "order" and it's an int.

{
    ..... other fields .....
    "order" : 1
}

I called the same service with:
1. Postman (Chrome extension).
2. Volley through my code.

When I'm getting the response:

@Override
public void onResponse(JSONObject response) 

The "order" field has different value between the 2 calls above.
* The service returns static data, so the difference cannot be there.
* All other field has the same values in those 2 calls.

Is there any known bug with JSON field name "order" in Volley or JSONObject or any know issue?

Upvotes: 0

Views: 414

Answers (1)

NickF
NickF

Reputation: 5737

The problem was in Postman caching

It's better to disable the parameter "Auto save request" in the settings.

Upvotes: 1

Related Questions