Created
March 8, 2012 00:49
-
-
Save drapp/1997643 to your computer and use it in GitHub Desktop.
StackMob Select Example Responses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "fred", | |
"email": "fred@example.com", | |
"bestfriend": | |
{ | |
"username": "bob", | |
"email": "bob@example.com", | |
"bestfriend": "fred", | |
"friends": ["peggy", "betty", "earl"] | |
}, | |
"friends": [ | |
{ | |
"username": "mary", | |
"email": "mary@example.com", | |
"bestfriend": "carl", | |
"friends": ["bob", "fred", "peggy"] | |
}, | |
{ | |
"username": "betty", | |
"email": "betty@example.com", | |
"bestfriend": "mary", | |
"friends": ["carl", "peggy", "earl"] | |
}, | |
{ | |
"username": "carl", | |
"email": "carl@example.com", | |
"bestfriend": "betty", | |
"friends": ["mary", "fred", "bob"] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "fred", | |
"email": "fred@example.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] fields = new String[]{"friends","friends.email"}; | |
StackMobQuery q = new StackMobQuery("user/fred").select(Arrays.asList(fields)).expandDepthIs(1); | |
StackMobCommon.getStackMobInstance().get(q, new StackMobCallback() { ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "fred", | |
"friends": [ | |
{ | |
"username": "mary", | |
"email": "mary@example.com" | |
}, | |
{ | |
"username": "betty", | |
"email": "betty@example.com" | |
}, | |
{ | |
"username": "carl", | |
"email": "carl@example.com" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "fred", | |
"email": "fred@example.com", | |
"bestfriend": | |
{ | |
"username": "bob", | |
"email": "bob@example.com", | |
"bestfriend": "fred", | |
"friends": ["peggy", "betty", "earl"] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "fred", | |
"email": "fred@example.com", | |
"bestfriend": "bob" | |
"friends": ["mary", "betty", "carl"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment