live_svelte/test/support/test_json_library.ex
Denis Donici 1f9ebc49d2
Use OTP json encoder by default. Add support for custom json library. (#199)
* add support for custom json library besides jason

* use native erlang json encoder

* fixed json parsing.  added more json tests

* Prepare for 0.17.0 release
2026-01-22 11:51:00 +02:00

8 lines
173 B
Elixir

defmodule TestJSONLibrary do
@moduledoc false
# Mock JSON library for testing custom configuration
def encode!(data) do
"TEST_ENCODED:#{inspect(data)}"
end
end