Warpath.Expression.compile

You're seeing just the function compile, go back to Warpath.Expression module for more information.

Specs

compile(String.t()) :: {:ok, t()} | {:error, Warpath.ExpressionError.t()}

Compile a jsonpath string query

Example

iex> Warpath.Expression.compile("$.post.author")
{:ok, %Warpath.Expression{tokens: [ {:root, "$"}, {:dot, {:property, "post"}}, {:dot, {:property, "author"}} ]}}