3 ms·
You can determine which brackets you need in which order by parsing the incomplete json which was generated so far.
by gyy52380 3y ago
You can determine which brackets you need in which order by parsing the incomplete json which was generated so far.
- dontreact 3y agoThat won't do it, also need to close other stuf {"this": "is valid json so farrrrrrrrrrrrrr But yeah the general idea makes sense. Once you hit a timeout, change the mask to things that will close existing open things in a valid manner (}, ), ], ")