reduce whitespaces in json loader