1#pragma once
2
3#include <pw.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9[[nodiscard]] bool pw_to_json(PwValuePtr value, unsigned indent, PwValuePtr result);
10/*
11 * Convert `value` to JSON.
12 *
13 * If `result` is Null, a string is created for it.
14 * Otherwise, it should provide Append interface.
15 *
16 * If `indent` is nonzero, the result is formatted with indentation.
17 */
18
19#ifdef __cplusplus
20}
21#endif