json-fs-query
    Preparing search index...

    Function maskArrays

    • Replace every array (outermost brackets only, so a nested array stays inside its parent) with a placeholder holding its JSON, so that the find* parsers never have to find where an array ends, and nothing inside one (a ., a ], a keyword) can be matched by them. Run it on the output of maskStrings, where no [ or ] is inside a string.

      Parameters

      • masked: string

      Returns string

      For an array which is not valid JSON once its strings are put back.