default to regular json.dumps
refacored and #13, #14
oops forgot kernel.js