Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.18 KB

README.org

File metadata and controls

36 lines (28 loc) · 1.18 KB

json-mode — a JSON editing mode

Do not use this project, I’ve abandoned it.

This is a simple JSON editing mode for Emacs.

Features

  • Folding of Objects and Arrays (C-c C-f to toggle next one, C-c C-u to unfold everything)
  • Pretty printing files (C-c C-p) (by default when file is opened as well, json-mode-pretty-print-on-open can be set to nil to disable this)
  • Minification (C-c C-m)
  • Idle time validation with result displayed on mode line
  • Validation (C-c C-v)
  • Get a path to value at point (C-c C-l) in following formats
    • JavaScript notation (default)
    • bracket notation
    • JSON pointer (RFC 6091)

https://asciinema.org/a/OJccRvxhZjLLBvovqEtV3PEF7.png

Installation

The easiest way to install this mode is to simply put it somewhere in load-path and add

(require 'json-mode)

to your init file.

Files with .json extension will be opened with this mode by default.

This mode has autoload comments, so it should work nicely with lazy loading setups.

Known problems

  • Pretty printing and minifying replaces {} with null