Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: decode() note

...

Note that if the content in the target is not valid JSON, decode() returns the string 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:

...