[Developers] Category list

John Giannandrea jg at metaweb.com
Mon Apr 21 15:44:00 UTC 2008


In javascript you dont need to quote the key name, as in:

[{ name: null, type: 'freebase/domain_category' }]

i.e. JSON is javascript literal notation.

-jg

Zodiac Seven wrote:
> This query runs fine in the query editor:
>
> { "query" : [ { "name" : null, "type" : "/freebase/ 
> domain_category" } ]}
>
> but when i run through javascript like this:
>
> var query =
> {
> name: [{
> "name" : null,
> "type" : "/freebase/domain_category"
> }]
>
> Metaweb.read(query, callBack);


More information about the Developers mailing list