Idris2/libs/contrib/Language/JSON.idr
Alex Humphreys f3855d7100
Update contrib Text.Parser to match Library.Text.Parser (#1808)
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-08-06 10:03:13 +01:00

17 lines
307 B
Idris

||| The JSON language, as described at https://json.org/
module Language.JSON
import Language.JSON.Lexer
import Language.JSON.Parser
import public Language.JSON.Data
import public Text.Bounded
%default total
||| Parse a JSON string.
export
parse : String -> Maybe JSON
parse x = parseJSON !(lexJSON x)