Skip to content

Commit 1bcf9e5

Browse files
authored
Add JSONEncode supporting buffers
1 parent 4770001 commit 1bcf9e5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

content/en-us/reference/engine/classes/HttpService.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,12 @@ methods:
238238
- The value `nil` is never generated.
239239
- Cyclic table references cause an error.
240240
241-
This method allows values such as `inf` and `nan` which are not valid
242-
JSON. This may cause problems if you want to use the outputted JSON
243-
elsewhere.
241+
This method allows values such as `inf` and `nan` which are not valid
242+
JSON. This may cause problems if you want to use the outputted JSON
243+
elsewhere.
244+
245+
This method can also take a `Datatype.buffer`, which will compress and
246+
encode the buffer to Base64, before turning it into a JSON object.
244247
245248
To reverse the encoding process and decode a JSON object, use the
246249
`Class.HttpService:JSONDecode()` method.

0 commit comments

Comments
 (0)