WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205161
[GLIB] Add GLib specific API for JSC JSValueRef.h's JSValueMakeFromJSONString and JSValueCreateJSONString methods
https://bugs.webkit.org/show_bug.cgi?id=205161
Summary
[GLIB] Add GLib specific API for JSC JSValueRef.h's JSValueMakeFromJSONString...
Andres Gomez Garcia
Reported
2019-12-12 07:56:21 PST
JSC provides in its C API functions for JSValueMakeFromJSONString:
https://github.com/WebKit/webkit/blob/master/Source/JavaScriptCore/API/JSValueRef.h#L300
and JSValueCreateJSONString:
https://github.com/WebKit/webkit/blob/master/Source/JavaScriptCore/API/JSValueRef.h#L311
It would be great if we could have those exposed by specific new GLib API.
Attachments
Patch
(13.22 KB, patch)
2019-12-16 04:24 PST
,
Carlos Garcia Campos
aperez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2019-12-16 04:24:32 PST
Created
attachment 385749
[details]
Patch
Andres Gomez Garcia
Comment 2
2019-12-19 04:21:29 PST
The API proposed LGTM. Thanks a lot, Carlos! I've not been able to try it yet, though.
Adrian Perez
Comment 3
2020-01-10 02:50:45 PST
Comment on
attachment 385749
[details]
Patch Patch LGTM. This looks very handy to get data in and out of a JSCContext, nicer than manually lots of API calls to build complex values. Also if some JSON comes from somewhere else and is to be loaded into a JSCContext, it seems much better to have this functionality than loading it as a string and having to use JSON.parse() later on in the JS side.
Carlos Garcia Campos
Comment 4
2020-01-10 02:53:36 PST
Committed
r254331
: <
https://trac.webkit.org/changeset/254331
>
Radar WebKit Bug Importer
Comment 5
2020-01-10 02:54:18 PST
<
rdar://problem/58474734
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug