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-15 10:16:31 +03:00
2022-07-15 14:39:21 +03:00
2022-07-23 17:21:17 +03:00
2022-07-01 21:35:19 -07:00
2022-05-13 16:43:59 -04:00
2022-03-08 20:38:12 +02:00
2022-04-20 17:18:06 -07:00
2022-01-07 00:06:06 -05:00
2022-06-03 20:21:20 +03:00
2022-04-14 10:12:45 -07:00
2022-07-09 15:19:03 +03:00
2022-06-03 20:21:20 +03:00
2022-07-15 14:39:21 +03:00
2022-05-26 21:58:19 -07:00
2022-07-11 18:47:29 +03:00
2022-07-01 21:35:19 -07:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00