f0i/debug-to-json/1.0.3

NOTE: the latest version is 1.0.6

Debug to JSON

Get a JSON structure from a string generated by Debug.toString.

Install

elm install f0i/debug-to-json

Examples

import DebugToJson

formatted =
    { asdf = "qwer" }
        |> Debug.toString
        |> DebugToJson.ppp

formatted will now contain the following String:

{
    "asdf": "qwer"
}

A complete list of the helper functions can be found in the DebugToJson module docs.