josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
820 stars 108 forks source link

Where is the library and what sort of validator doesn't support JSON schema? #248

Closed cogitaria-admin closed 1 year ago

cogitaria-admin commented 1 year ago

Having a hosted website would be a marginally useful add-on to a proper library that validates and auto-fixes JSON formatting issues. Valid JSON is best managed by creating a schema (and there are libraries to convert JSON to a schema) then using the schema to validate. You would get more users and more support by providing a library where a website was a client not the primary focus of the project. I certainly won't be manually pasting documents (possibly sensitive) one-at-a-time into some the website in the hopes of fixing malformed JSON.

josdejong commented 1 year ago

Thanks for your input. I do not understand what you mean. There is a hosted website: https://jsoneditoronline.org/, and it has auto-repair functionality and JSON Schema support.

WFDexter commented 1 year ago

It's confusingly written but I think they want either an API surfaced or a stand-alone library they can include in their own projects.

josdejong commented 1 year ago

Yeah that could be. I don't know.

I will close this issue now due to a lack of response, please reopen if still relevant.