Use json-print-buffer instead of this custom func