On Thu, Dec 8, 2011 at 8:51 AM, Adam Barth <aba...@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" <jar...@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@lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>
>>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to