Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix for decode error case

...

Note that if the content in the target is not valid JSON, or if the target is not a string, decode() returns the string target unchanged without warning. JSON Lint is your friend. If target is a string, a map structure will be returned with "error" as the key with the original string in an array as the value. example { "error" : [ "string" ] } .

extract()

The extract() operator matches the string using a regular expression given as the sole argument and returns the specified capture groups as an array. For example:

...