Add default json, fix crash without TC, clean up warnings