Check first if json is blank or not