JsonText.php
Table of Contents
Classes
- JsonText
- Decode JSON text as json_decode($json, false, 512, JSON_THROW_ON_ERROR) does, keeping every string and member name as written (docs/spec/input-text.md). An unpaired surrogate escape becomes the three-byte encoding of that surrogate and a byte that is not UTF-8 is kept, so both remain text that is not valid UTF-8 and the input text check rejects them. Nothing is replaced.