I recently checked if Qt Creator supports any kind of JSON validation (e.g. JSON lint). I found this page:
Quoting the section:
Qt Creator validates instances of JSON entities against A JSON Media Type for Describing the Structure and Meaning of JSON Documents. However, Qt Creator does not understand the entire specification.
A JSON schema defines the structure of JSON data. It determines what JSON data is required for an application and how to interact with it.
The specification does not define how to map JSON instances with JSON schemas. Qt Creator looks for a JSON schema file with a name that matches the name of the JSON instance file in the user configuration folder. For example, ~/config/QtProject/qtcreator/json on Linux and macOS and C:\Users\username\AppData\Roaming\QtCreator\qtcreator\json in Windows. To check JSON data structure, copy the JSON schema file to the above folder.”
Does this mean that if I want to validate a regular JSON file, I need to have my own schema? Why not provide a default schema so that there is an equivalent to the results that e.g. JSON lint would give? Just for kicks, I tried running Ctrl+Shift+C with a JSON file open (which couldn’t be loaded by QJsonDocument due to errors), but Creator didn’t show any entries for it in the Issues pane.
|For Gerrit Dashboard: QTCREATORBUG-21024|
|267895,2||Doc: Remove section on Checking JSON data structure||4.10||qt-creator/qt-creator||Status: MERGED||+2||0|