|
I have a project where I need to pass a JSON string as the contents of a
json object. (Please don't ask why.... I'm past that point.. haha).
Anyhow, does the yajl_stringify() or yajl_stringifyStr() function escape
the JSON so this can be done, or is that something I will need to do
manually. It looks like specifically the double quotes need to be escaped
with \".
Or is there a better way?
So basically I have to:
1. Build the first JSON
2. Stringify the JSON
3. Add that JSON as the value of another JSON document.
TIA!
Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud
Provider!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.