Function toJSON

Serializes a Nix value to a JSON string.

extern(C) Value toJSON(
  Value arg
);

Parameters

NameDescription
arg any Nix value except functions

Returns

A Nix string containing the JSON representation.