**Is your feature request related to a problem? Please describe.** JSON output was added to r.kappa before introducing parson library. The idea is to rewrite the current implementation to use parson library for better maintainability.