class JSON::DecodeError < StandardError

Raised by JSON.decode when the document does not have the shape of the type asked for. The message gives where ($.user.tags[2]), what was expected and what was found (a scalar as written; an array or an object only by its kind).

<std:json>:40