From 9e233a916fca02be1366dadeaec09e7882aaf459 Mon Sep 17 00:00:00 2001 From: Zirunis <122003158+Zirunis@users.noreply.github.com> Date: Fri, 8 Aug 2025 11:45:46 +0200 Subject: [PATCH] Fixed typo in docstring of textutils.serializeJSON (#2260) --- .../resources/data/computercraft/lua/rom/apis/textutils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua index 7dd0b5af4..40a5f18cc 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua @@ -864,7 +864,7 @@ values do not serialise cleanly into JSON. A consequence of this is that an empty table will always be serialised to an object, not an array. [`textutils.empty_json_array`] may be used to express an empty array. - - Lua strings are an a sequence of raw bytes, and do not have any specific encoding. + - Lua strings are a sequence of raw bytes, and do not have any specific encoding. However, JSON strings must be valid unicode. By default, non-ASCII characters in a string are serialised to their unicode code point (for instance, `"\xfe"` is converted to `"\u00fe"`). The `unicode_strings` option may be set to treat all input