Hello,

I noticed that when I choose JSON as an export format, I get an
invalid JSON output, which makes it totally unusable by any JSON
parser (I'm using the simplejson python module to read it, but any
will do).

Some of the attributes (first in each block I think) are not quoted,
which should never happen:

{
        properties: {

        },
        items: [
                {
                        label: "Foobar 1067",
                        "uri" : "http://paris/index.php?title=Foobar 1067",
                        "type" : "Foobar"
                },

[...]

Here, properties, items and label must be quoted.

I found a bug report from Neil Davies for this problem (hopefully, I'm
not the only one on earth to use JSON with SMW!) and even a patch (in
the same bug report,
https://bugzilla.wikimedia.org/show_bug.cgi?id=20241 ).

What I don't understand is that this bug, which has a solution, has
been open on 2009-08-14, but the patch hasn't been committed, as of
2010-01-05. I tried the patch, and it works correctly.

Any information?

Thanks for your help,
Lior Gradstein

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to