Closed thgh closed 6 months ago
Yeah, but I think it is implemented now, you can use JSON.stringify(parse(text))
to get the completed JSON as string.
Of course the spaces inside is not preserved. Do you mean that? Or I don't get the difference.
Hi, sorry! I thought this repo was related to https://www.npmjs.com/package/partial-json-parser which documents that unclosed strings are considered undefined.
I used this project and it works perfect for the LLM case :-) Thanks!
It would be cool to parse it like this: (for AI completions)