-
Notifications
You must be signed in to change notification settings - Fork 657
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
[JsonObject JsonValue] doesn't act like a list in all instances #35
Comments
Can you show me the JSON object you are working with? |
The json I'm testing with is the result returned from Here's my test code:
I'm just using
The format of the json is like this (with a bunch elided):
|
Ok, this is actually a bug in the type checker. The program you sent should have thrown a type error at compile time, so I'll look into what is going on. The issue was that This level of indirection is needed so that This should work:
By the way, this is totally awesome! I had it output everything as images and it was really cool :D You might be interested in something like this:
|
Thanks! Wow, I hadn't messed much with the flow stuff yet! So coo! |
No problem! See the other issue on
Again, very cool idea! I'd love to see what it ends up looking like! |
I was expecting the result of
findArray "foo" json
to act like a list. It does sometimes, but not in all instances, leading to some confusing situations.For instance, this doesn't work:
urls ends up as a list of empty lists.
It seems the only way to get at the contents of the list in
children
is by destructuring, as in the flickr search demo. Other list operations likehead children
don't work either.The text was updated successfully, but these errors were encountered: