Skip to content

How to help fix bugs in JSON Editor

Peter Klein edited this page Dec 2, 2018 · 4 revisions

Here's how I do it:

  1. Open "dist/jsoneditor.js" in your editor (This is the file we are going to modify during tests/bug fixing.)
  2. Open "src/<file>" in your editor (This is the source for the part you will be modifying in "dist/jsoneditor.js")
  3. Find the code in "dist/jsoneditor.js" that matches the code in "src/<file>"
  4. Modify the code in "dist/jsoneditor.js" (console.log() is a big help here) and perform tests until you are sure you have fixed or located the bug.
  5. Apply the fix/new code to "src/<file>" and build a new dist using Grunt.
  6. Remember to update the documentation (readme.md), If you add new features or config options. If you created a new editor type, please provide an example in the "docs/" folder.
  7. Test if your fix is working with the newly build dist files. If it works, commit your changes and submit a pull request.