[Webkit-unassigned] [Bug 274248] New: [GTK] jsc_value_new_string object returned as string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 16 02:15:52 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=274248
Bug ID: 274248
Summary: [GTK] jsc_value_new_string object returned as string
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jan.brummer at tabos.org
CC: bugs-noreply at webkitgtk.org
Entering an js object into jsc_value_new_string and converting it to json leads to a string with leading and trailing quote.
{ \"test\": \"1\"}
will be translated into
"{ \"test\": \"1\"}"
Test application:
#include <json-glib/json-glib.h>
#include <jsc/jsc.h>
int
main (int argc, char **argv)
{
const char *obj = "{ \"test\": \"1\"}";
JSCValue *val = jsc_value_new_string (jsc_context_new (), obj);
g_print ("%s\n", jsc_value_to_json (val, 1));
return 0;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240516/a242dd19/attachment.htm>
More information about the webkit-unassigned
mailing list