Methods and tools for writing JSON data specifications

Asked 1 years ago, Updated 1 years ago, 64 views

When writing JSON data specifications, what format and tools do you usually use to write specifications?
If possible, I would appreciate it if you could tell me some tools that can automatically generate specifications from the sample JSON file.

json

2022-09-30 19:30

1 Answers

"JSON Schema" is famous for setting the specifications for JSON.This is a format that allows you to describe the conditions that JSON should meet (such as a field that must contain a string), and the JSON Schema itself is also written in JSON.

JSON Schema itself will be described in JSON, so it is positioned as something that a machine reads rather than something that a person can read and understand, and it may be a little different from the specifications you are looking for.For the time being, there seems to be an attempt to generate a human-readable document from JSON Schema (Reference 1, Reference 2/p>).

There is also a library that can check if the JSON entered matches the JSON Schema.You can also find tools to generate JSON Schema from JSON samples by looking up search words such as "JSON Schema generator".


2022-09-30 19:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.