add docstring to std.json.stringify (#16241)

This commit is contained in:
yujiri8 2023-07-03 19:26:11 -04:00 committed by GitHub
parent 17890f6b8a
commit b26fa4ec4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,6 +134,8 @@ pub fn encodeJsonStringChars(chars: []const u8, options: StringifyOptions, write
}
}
/// If `value` has a method called `jsonStringify`, this will call that method instead of the
/// default implementation, passing it the `options` and `out_stream` parameters.
pub fn stringify(
value: anytype,
options: StringifyOptions,