Using this function, more error object can be added to the error array of an json error object.
The 'statistics' was mistakenly written as 'statictics'.
Using the JSON Pointer syntax specified in RFC 6901 (https://tools.ietf.org/html/rfc6901) allows for a convenient way to access values deep in a JSON object.