allow for disabling of default json encode