[webkit-dev] Internal JSON Parsing

Pavel Feldman pfeldman at chromium.org
Thu Dec 8 09:16:42 PST 2011


On Thu, Dec 8, 2011 at 8:51 AM, Adam Barth <abarth at webkit.org> wrote:

> Check out InspectorValue.  It should be renamed to JSONValue, but it
> should meet your needs.
>
InspectorValue is not intended to be used as a full fledged JSON parser. It
only covers subset of the standard that is sufficient for the inspector
operation. The spec requires that you "Return the result of invoking the
parse function of the JSON object defined in ECMAScript" and I wonder why
you are willing to do otherwise.

Pavel


> Adam
>  On Dec 8, 2011 8:39 AM, "Jarred Nicholls" <jarred at webkit.org> wrote:
>
>> Hey webkittens,
>>
>> I'm working on https://bugs.webkit.org/show_bug.cgi?id=73648 to support
>> the json response entity from XHR.response.  Unless I'm mistaken (the
>> purpose of this inquiry) we don't appear to have a VM-agnostic interface
>> for internal JSON parsing, i.e., straight to the parsers.  If so, what does
>> everyone think about adding in that basic interface?  What I'd like to
>> avoid is preprocessor branches directly in XHR talking to JSC and V8
>> directly; instead, what would be ideal I think is an interface to parse and
>> return a ScriptObject.
>>
>> Any additional input is surely welcomed.
>>
>> Thanks,
>> Jarred
>>
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>
>>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111208/18cc38c7/attachment.html>


More information about the webkit-dev mailing list