Skip to content

Instantly share code, notes, and snippets.

View mcepl's full-sized avatar

Matěj Cepl mcepl

View GitHub Profile

Could you find me some deeper studies comparing JSON and HJSON? Are there any other "JSON which can be used by humans" alternatives?

It appears that formal, "deeper studies" in the academic sense (like peer-reviewed research papers) specifically comparing JSON and HJSON are rare. However, the design rationales, feature breakdowns, and formal specifications serve as the most detailed comparisons available.

Here is a synthesis of the key differences and an overview of other "human-friendly JSON" alternatives.


HJSON vs. Standard JSON: A Comparison

#!/usr/bin/python3
# usage: import-gsettings
import configparser
import os
import os.path
from gi import require_version
require_version('Gio', '2.0')
from gi.repository import Gio
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff -ru vim70.orig/src/Makefile vim70.hunspell/src/Makefile
--- vim70.orig/src/Makefile 2006-12-15 12:29:41.000000000 +0000
+++ vim70.hunspell/src/Makefile 2006-12-14 11:11:20.000000000 +0000
@@ -1287,7 +1287,7 @@
PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
-ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS)
+ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS) -lhunspell-1.1