MantisBase v0.4.9
Loading...
Searching...
No Matches
duk_json.h File Reference

Teach dukglue to pass nlohmann::json as a JavaScript value. More...

#include <dukglue/dukglue.h>
#include <nlohmann/json.hpp>
#include "script_json.h"
Include dependency graph for duk_json.h:

Go to the source code of this file.

Classes

struct  dukglue::types::DukType< nlohmann::json >
struct  dukglue::types::DukType< mb::MbScriptJson >

Namespaces

namespace  dukglue
namespace  dukglue::types

Detailed Description

Teach dukglue to pass nlohmann::json as a JavaScript value.

A returned JSON value is decoded onto the Duktape stack, and a JavaScript argument is encoded back into JSON.