Allow top level arrays in json matching

The candidate needs to have starting brackets escaped before compiling
the regex. New tests included