![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
JSON extension helpers and VM opcode cases (conditional build). More...
Go to the source code of this file.
Functions | |
| static Value | json_to_fun (json_object *j) |
| Convert a json-c object into a Fun Value. | |
| static json_object * | fun_to_json (const Value *v) |
| Convert a Fun Value into a json-c object. | |
JSON extension helpers and VM opcode cases (conditional build).
Provides conversions between json-c objects and the Fun Value type and supplies VM opcode case implementations when FUN_WITH_JSON is enabled. This unit may be included or compiled conditionally based on build flags.
Definition in file json.c.
|
static |
Convert a Fun Value into a json-c object.
Produces a newly-allocated json_object tree representing the supplied Value. Unsupported Fun types are stringified using a placeholder.
|
static |
Convert a json-c object into a Fun Value.
Maps json-c primitive and compound types to the closest Fun Value representation.
| j | Pointer to a json_object; may be NULL. |