[cl-json-devel] Parsing JavaScript data
Andrei Stebakov
lispercat at gmail.com
Mon Jun 9 22:46:31 UTC 2008
I have a web page which has a JavaScript defining some data in a form:
var Categories = [
{name:"Cat1 ", caption:escape("Category 1")},
{name:"Cat2 ", caption:escape("Category 2")}
];
var DB = new Object();
DB[Categories[0].name] = [
{name:escape("Item1"), item-num:8}
];
etc...
When I try to parse it with cl-json (using decode-json-from-string), I got
errors because it can't accept things like variable definitions.
Can I use cl-json to create a CL data from the JS data I mentioned or I
should use some other tool?
Thank you,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-json-devel/attachments/20080609/955f8379/attachment.html>
More information about the cl-json-devel
mailing list