jsonnet v0.2.1 Jsonnet

Jsonnet parses .jsonnet files and returns the content.

Link to this section Summary

Functions

Takes a JSONNET string and returns the data as a tagged tuple with Elixir data structures. This uses Jason to deserialize the data and takes the same options.

Takes a files name returns the data as a tagged tuple with Elixir data structures. This uses Jason to deserialize the data and takes the same options.

Takes a JSONNET string and returns the data as a tagged tuple with a JSON string.

Takes a filename and returns the data as a tagged tuple with a JSON string.

Link to this section Functions

Link to this function

decode(jsonnet, opts \\ [])

Takes a JSONNET string and returns the data as a tagged tuple with Elixir data structures. This uses Jason to deserialize the data and takes the same options.

Link to this function

decode_file(filename, opts \\ [])

Takes a files name returns the data as a tagged tuple with Elixir data structures. This uses Jason to deserialize the data and takes the same options.

Specs

parse(String.t()) :: {:ok | :error, String.t()}

Takes a JSONNET string and returns the data as a tagged tuple with a JSON string.

Link to this function

parse_file(filename)

Specs

parse_file(String.t()) :: {:ok | :error, String.t()}

Takes a filename and returns the data as a tagged tuple with a JSON string.