Idris2/libs/contrib/Language/JSON.idr

15 lines
279 B
Idris
Raw Normal View History

2020-05-18 15:59:07 +03:00
||| 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
%default total
||| Parse a JSON string.
export
parse : String -> Maybe JSON
parse x = parseJSON !(lexJSON x)