Skip to content

A JSON editting mode for GNU Emacs with folding support.

License

Notifications You must be signed in to change notification settings

UwUnyaa/json-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A JSON editting mode for GNU Emacs with folding support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published