Skip to content
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

Change value of the object field inside an array #21

Open
milkiway opened this issue Jul 8, 2014 · 0 comments
Open

Change value of the object field inside an array #21

milkiway opened this issue Jul 8, 2014 · 0 comments

Comments

@milkiway
Copy link

milkiway commented Jul 8, 2014

Hello guys,

Unfortunately handling of json arrays is not described well in Android SDK documentation, yet. Could you please help me, how can I change certain field of the object inside an array like this:

"messages": [
{
"userNumber": "142125235235",
"accepted": 1
}

I'm trying this way, but it doesn't work:

optJsonBody.putString("data", "2");
cli.rest(HttpRequest.PUT,
"document/sms/" + messsage.id + "/.messages[0].accepted",
optJsonBody,
true,
new BaasHandler() { ...}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant