Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created July 4, 2014 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhariri/b374e84491da5a753fea to your computer and use it in GitHub Desktop.
Save hhariri/b374e84491da5a753fea to your computer and use it in GitHub Desktop.
val http = EasyHttp()
http.get("http://localhost/customers", callback = {
assertEquals("joe", asJson("results.customers[10].name"))
})
@hhariri
Copy link
Author

hhariri commented Jul 4, 2014

Obviously in this case, customers would return:

{
results: [{name:...}]
}

if there's no results, then you don't need to prefix it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment