A json provider for distillery 2 using the jason library
If available in Hex, the package can be installed
by adding json_provider
to your list of dependencies in mix.exs
:
def deps do
[
{:json_provider, "~> 0.4.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/json_provider.
Most JSON types map as expected. However, specific JSON objects can be used to have atoms or charlists in the final config output.
{
"mnesia": {
"dir": {
"type": "charlist",
"value": "/home/tester/directory"
}
}
}
{
"Elixir.Some.Nested.Module": {
"log_level": {
"type": "atom",
"value": "warn"
}
}
}