indent cleanup for json function