Changed errors to be JSON-encoded arrays rather than delimited strings.