I have a json array like this:
"employees":[ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter","lastName":"Jones"} ]
I have been trying to do this <Text Value="{employees[0].firstName}" /> to get the first item but it doesn’t seem to work.
<Text Value="{employees[0].firstName}" />
Any idea?
Yea I talked to someone in the Fuse team, but thanks for bringing it up as a forum posts. I believe they are working on making this possible. As a work around if your always going to target the first of the array, just export the individual object
Hi!
As of 0.11, array lookups in data bindings is not possible. It is on our todo-list, though!
Anders Lassen wrote: Hi! As of 0.11, array lookups in data bindings is not possible. It is on our todo-list, though!
Anders Lassen wrote:
Thanks!
If Someone is looking for a Wordpress JSON solution to break the array out I found this solution …in the meantime.
http://codepad.org/WZVmodoB