Warpath.Element.Path.bracketify

You're seeing just the function bracketify, go back to Warpath.Element.Path module for more information.

Specs

bracketify(acc()) :: binary()

Transform path tokens into a jsonpath bracket-notation representation.

Example

iex> acc = [{:property, "name"}, {:root, "$"}]
...> Warpath.Element.Path.bracketify(acc)
"$['name']"