Currently, AFAIK, the JSON module does not provide out-of-the-box a way of pretty encoding a term into JSON, but checking the Erlang docs, it seems that we have since v27.1 a format function <https://www.erlang.org/docs/28/apps/stdlib/json.html#format/1> that encodes terms into JSON with additional whitespaces for better formatting.
I wonder if Elixir's JSON module should use this function by default when encoding terms. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/elixir-lang-core/8538257c-093a-4e1e-8c21-97dffbfb7b9en%40googlegroups.com.
