Exception: JQ::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/jq.rb,
ext/jq/jq_ext.c

Overview

Raised when JSON input is invalid or malformed.

This indicates the input string is not valid JSON:

JQ.filter('not json', '.')
# raises JQ::ParseError: Invalid JSON input