18#ifndef INCLUDED_SCRIPTINTERFACE_JSON
19#define INCLUDED_SCRIPTINTERFACE_JSON
Path()
Definition: path.h:84
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:60
Wraps SM APIs for manipulating JS objects.
Definition: JSON.h:35
bool ParseJSON(const ScriptRequest &rq, const std::string &string_utf8, JS::MutableHandleValue out)
Parse a UTF-8-encoded JSON string.
Definition: JSON.cpp:49
void ReadJSONFile(const ScriptRequest &rq, const VfsPath &path, JS::MutableHandleValue out)
Read a JSON file.
Definition: JSON.cpp:60
std::string StringifyJSON(const ScriptRequest &rq, JS::MutableHandleValue obj, bool indent=true)
Stringify to a JSON string, UTF-8 encoded.
Definition: JSON.cpp:104
std::string ToString(const ScriptRequest &rq, JS::MutableHandleValue obj, bool pretty=false)
Convert an object to a UTF-8 encoded string, either with JSON (if pretty == true and there is no JSON...
Definition: JSON.cpp:118
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:407