Daniel O'Connor wrote:
> What are my chances of having the above json converted by exhibit
> automatically / some other way / thing (rdf?) to make it very
easy to
> pump out data to exhibit?
I don't know PHP JSON but it looks to me like each item is
string-ified
and hence the extra escaping for ". Note the extra "s around { ...
} here:
{"items":["{ ... }",...
If you can avoid that string-ification, I think it should work out.
Sadly; I can't as far as I can tell.
If you look at http://gggeek.altervista.org/sw/article_20061113.html
you notice that every single php library puts the keys into strings.
The RFC linked from json.org <http://json.org> even contains examples
which have quoted keys:
http://www.ietf.org/rfc/rfc4627.txt?number=4627 (page 7);
That probably explains why people implement their solutions like that;
and will continue to do so.
Sorry I didn't explain that well. I meant
{"items":["{ ... }",...
should be
{"items":[{ ... },...
"items" is fine. In your original example, the red part (if your email
client shows HTML) shouldn't be quoted:
{"items":["{\"label\":\"Daniel\",\"id\":1,\"imageURL\":\"http:\\\/\\\/images.google.com.au\\\/images?q=tbn:7-rLOervtN554M:http:\\\/\\\/www.advancedaquarist.com\\\/2005\\\/7\\\/fish_album\\\/AA2.jpg\",\"age\":18}"]}
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general