convert AIWarning strings to json