Skip to content

added chain of key access in all get methods - #121

Closed
raseshshah wants to merge 1 commit into
stleary:masterfrom
raseshshah:master
Closed

added chain of key access in all get methods#121
raseshshah wants to merge 1 commit into
stleary:masterfrom
raseshshah:master

Conversation

@raseshshah

Copy link
Copy Markdown

Before Commit:
chain of method call to access literal or object
json.getJSONArray("person").getJSONObject(0).getJSONObject("name").getString("fname");

After Commit:
Now able to access literal or object in one call itself
json.getString("person[0].name.fname");

@johnjaylward

Copy link
Copy Markdown
Contributor

I personally wouldn't want this in the core lib. It's asking for more problems than solving, and is the reason libraries like QueryDSL were written for SQL statements.

@douglascrockford

Copy link
Copy Markdown
Contributor

No thank you.

@raseshshah

Copy link
Copy Markdown
Author

ok.

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

Successfully merging this pull request may close these issues.

3 participants