18 #ifndef INCLUDED_SCRIPTINTERFACE_JSON 19 #define INCLUDED_SCRIPTINTERFACE_JSON 60 #endif // INCLUDED_SCRIPTINTERFACE_JSON 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:117
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:421
bool ParseJSON(const ScriptRequest &rq, const std::string &string_utf8, JS::MutableHandleValue out)
Parse a UTF-8-encoded JSON string.
Definition: JSON.cpp:48
Wraps SM APIs for manipulating JS objects.
Definition: JSON.h:34
std::string StringifyJSON(const ScriptRequest &rq, JS::MutableHandleValue obj, bool indent=true)
Stringify to a JSON string, UTF-8 encoded.
Definition: JSON.cpp:103
void ReadJSONFile(const ScriptRequest &rq, const VfsPath &path, JS::MutableHandleValue out)
Read a JSON file.
Definition: JSON.cpp:59
Path()
Definition: path.h:84
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:59