f0i / debug-to-json

Elm pretty printer and to JSON converter for Debug.toString output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.pp

formatted will now contain the following String:

{
    "asdf": "qwer"
}

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

About

Elm pretty printer and to JSON converter for Debug.toString output

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%