Jonathan Marler f598234ee8 std.json: expose encodeJsonString and encodeJsonStringChars
Expose 2 functions from std.json.  These functions take a slice of bytes
and forward them to a given writer as a JSON encoded string.

The use case I have for this is in a custom JsonStringWriter.  This writer
takes data and automatically encodes it as JSON string characters and
forwards it to an underlying writer.  I use this JsonStringWriter in
combination with std.fmt.format to go directly from a format string/arg
pair to JSON.  This way I don't have to format my string into a separate
buffer first and encode it afterwards, which avoids the need to create
a temporary buffer to hold the unencoded but formatted string.
2022-07-24 11:51:59 +03:00
..
2022-07-19 19:10:12 -07:00
2022-07-03 15:58:39 -07:00
2022-07-04 12:14:48 -07:00
2022-07-01 16:39:29 -07:00
2022-07-01 16:39:31 -07:00
2022-05-26 21:58:19 -07:00