3 ms·
Curiosity: why do you want this in JSON? If you already have explicit schemas in mind, why not use some packed schema-based representation that ends up being m
by dylz 7y ago
Curiosity: why do you want this in JSON?
If you already have explicit schemas in mind, why not use some packed schema-based representation that ends up being more compact?
Alternatively, what is stopping you from just adding a JSON Schema key to your JSON document? If you don't want to do this, what is stopping you from hard-defining a JSON schema when ingesting the string? It isn't like you want anyone in the world to randomly be able to give you a schema to validate against.