Daniel O'Connor wrote:
> Exhibit is awesomely good.
> PHP's json extension is likewise awesomely good.
>
> Only the json produced by all php json extensions looks like:
>
> {"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}"]}
>  
>
>
> but the json used by exhibit is a bit more sane:
>
> {items:[{id:1,label:"Daniel",imageURL:"http:\/\/images.google.com.au\/images?q=tbn:7-rLOervtN554M:http:\/\/www.advancedaquarist.com\/2005\/7\/fish_album\/AA2.jpg",age:18}]}
>  
>
>
> and using the PHP json data does not work with exhibit :(
>
> 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.

David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to