There is a "filter" field so I put "json" into that and got a list of all JSON features. Clicking on them, a button labeled "Uninstall..." on the bottom of the screen would get enabled. After uninstalling any Eclipse-centric JSON feature, my JSON files were being displayed all gray and no errors.
If I try to paste the first code format on the json editor and try to save it I get an error message "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''[object Object]', '[object Object]', people = '[object Object]' WHERE id_...' at line 2"
JSON is a data format that is common in configuration files like package.json or project.json. We also use it extensively in Visual Studio Code for our configuration files. When opening a file that ends with .json, VS Code provides features to make it simpler to write or modify the file's content.
In addition to the default JSON mode following the JSON specification, VS Code also has a JSON with Comments (jsonc) mode. This mode is used for the VS Code configuration files such as settings.json, tasks.json, or launch.json. When in the JSON with Comments mode, you can use single line (//) as well as block comments (/* */) as used in JavaScript. The mode also accepts trailing commas, but they are discouraged and the editor will display a warning.
The current editor mode is indicated in the editor's Status Bar. Select the mode indicator to change the mode and to configure how file extensions are associated to modes. You can also directly modify the files.associations setting to associate file names or file name patterns to jsonc.
The association of a JSON file to a schema can be done either in the JSON file itself using the $schema attribute, or in the User or Workspace settings (File > Preferences > Settings) under the property json.schemas.
To map a schema that is located in the workspace, use a relative path. In this example, a file in the workspace root called myschema.json will be used as the schema for all files ending with .foo.json.
I don't know any readymade editor, but you can use jq to reformat your json ad then use any texteditor. With vim and emacs you should even be able to add commands to prettify/minify the displayed json.
#Realtime json evaluation
The evaluation of json is split in two parts. One it validates if the file is correct json.
This will help when you forgot a comma or simular. This will be marked in the left margin in red.
#Autocomplet
Autocomplet in json is normaly restricted to surgest from words allready in the file.
When you have a schema in the file you know what keys to expec.
I have also extended the normal json schema to include some autocomplete definitions of what a value field is.
For example a file, an enum or event a set of keys collected from an other file.
Well I had been thinking about writing a plugin for sublime text. But both task seems a little large to start on. But the code is on github so steal away. The json validation part is in a project for it self and can easily be reused.
Is there any way to fix it or have to wait for an update? while I'm at it I'd like to make a feature request, is it possible to add a "Design" view in the future? like the XML Editor plugin, so I don't accidently edit out a parenthesis or other json delimeters.
Decent plugin. It does basic json formatting and syntax highlighting, however it has one "feature" which renders it un-usable. It will randomly, seemingly without a pattern highlight entire blocks of json. So if you're typing this means that the entire block is replaced. Not an acceptable thing for a code editor to do!
I am using Ubuntu 13.04 (Kernel 3.5.44) Unfortunately, this plug in starts acting up and does not allow the json file to be saved with a NullPointerException (no further info provided by Eclipse). It hampered my delivery efforts.
760c119bf3