18#ifndef INCLUDED_SCRIPTINTERFACE_JSON
19#define INCLUDED_SCRIPTINTERFACE_JSON
21#include <js/TypeDecls.h>
26namespace Script {
class Request; }
Path()
Definition: path.h:88
Abstraction around a SpiderMonkey JSContext.
Definition: DapInterface.h:32
bool ParseJSON(const Script::Request &rq, const std::string &string_utf8, JS::MutableHandleValue out)
Parse a UTF-8-encoded JSON string.
Definition: JSON.cpp:40
std::string ToString(const Script::Request &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:109
std::string StringifyJSON(const Script::Request &rq, JS::MutableHandleValue obj, bool indent=true)
Stringify to a JSON string, UTF-8 encoded.
Definition: JSON.cpp:95
void ReadJSONFile(const Script::Request &rq, const VfsPath &path, JS::MutableHandleValue out)
Read a JSON file.
Definition: JSON.cpp:51
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:407