Revert "No more need for JSON"

This reverts commit 1cc3eb991cd0fb9ed9bc50562811d66e4ed06c84.
Document the JSON funcs