이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

jsonstringify Operator

2023년 9월 22일 오후 12:14
purposeapply JSON string encoding to a string, see also the similar stringify
inputa selection of titles
suffixR=Introduced in v5.1.23 optionally, the keyword rawunicode
outputthe input with JSON string encodings applied

Learn more about how to use Filters

Introduced in v5.1.14

The following substitutions are made:

CharacterReplacementCondition
\\\Always
"\"Always
Carriage return (0x0d)\rAlways
Line feed (0x0a)\nAlways
Backspace (0x08)\bAlways
Form field (0x0c)\fAlways
Tab (0x09)\tAlways
Characters from 0x00 to 0x1f, except listed above\u#### where #### is four hex digitsAlways
Characters from from 0x80 to 0xffff\u#### where #### is four hex digitsIf rawunicode suffix is not present (default)
Characters from 0x80 to 0xffffIntroduced in v5.1.23 UnchangedIf rawunicode suffix is present

Introduced in v5.1.23 If the suffix rawunicode is present, Unicode characters above 0x80 (such as ß, ä, ñ or 🎄) will be passed through unchanged. Without the suffix, they will be substituted with \u codes, which was the default behavior before 5.1.23. Characters outside the Basic Multilingual Plane, such as 🎄 and other emojis, will be encoded as a UTF-16 surrogate pair, i.e. with two \u sequences.

Note
Mind the differences compared to stringify in encoding of single quotes and control characters (0x00 to 0x1f).

Examples