Skip to main content

인수

any
필수
encode 및 decode 할 Value 입니다. Supported JSON values 는 JSON 을 통해 round-trip 됩니다. unsupported types 는 encode options 가 error 를 요청하지 않으면 null 로 encode 됩니다.
EncodeOptions
encode step 으로 전달되는 Optional encode options 입니다. 예: sortKeys, emptyTableAsArray, errorOnUnsupported, encodeInvalidNumbersAsNull, maxDepth, pretty, indent.

반환값

any
encoded JSON 에서 생성된 Decoded value 입니다. Objects 와 arrays 는 decoder 의 JSON kind markers 를 가진 new tables 입니다. JSON null values 는 json.null 이 됩니다.

타입

EncodeOptions

JSON 직렬화 및 형식화를 제어합니다.

예제

nested values 를 변경하기 전에 JSON-compatible value 를 json.encode 와 json.decode 로 round-trip 합니다.