glideapps/quicktype

Accept JSON5 as input

Open

#1.144 aberto em 31 de dez. de 2018

Ver no GitHub
 (2 comments) (3 reactions) (0 assignees)TypeScript (968 forks)batch import
good first issueinput:JSON

Métricas do repositório

Stars
 (10.867 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

JSON is a pretty rigid format, even changes from double quotes to single quotes would fail its validation. It happened many times to me that what I really need to input is not a strict JSON but a Javascript Object. In this regards I think it would be quite convenient if we can add JSON5 as an input source, which is 100% compatible with standard JSON, but with steroids to make most normal Javascript Objects valid as well. For reference, here is the specification of JSON5 https://json5.org/

Guia do colaborador