Bug 130029

Summary: Please add a way to work with JSON that doesn't depend on JavaScript
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, ggaren, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Alexey Proskuryakov 2014-03-10 11:36:24 PDT
WebCrypto uses JSON as a key serialization format in a way that's not really tied to JavaScript. I had to store an ExecState pointer to perform the work, but that's somewhat ugly and unsafe.

It would help a lot if there was a way to work with JSON as a pure data container, I'm imagining something like a DOM SAX interface for parsing.
Comment 1 Geoffrey Garen 2014-03-10 13:42:44 PDT
Better to store a VM* or JSGlobalObject* than an ExecState*. ExecState* has no lifetime guarantee.