<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Text.JSON</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ></HEAD ><BODY ><DIV CLASS="outer" ><DIV CLASS="mini-topbar" >Text.JSON</DIV ><DIV CLASS="mini-synopsis" ><H1 >JSON Types </H1 > <DIV CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="Text-JSON.html#t%3AJSValue" TARGET="main" >JSValue</A > </DIV > <H1 >Serialization to and from JSValues </H1 > <DIV CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="Text-JSON.html#t%3AJSON" TARGET="main" >JSON</A > a</DIV > <H1 >Encoding and Decoding </H1 > <DIV CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="Text-JSON.html#t%3AResult" TARGET="main" >Result</A > a</DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3Aencode" TARGET="main" >encode</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3Adecode" TARGET="main" >decode</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AencodeStrict" TARGET="main" >encodeStrict</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AdecodeStrict" TARGET="main" >decodeStrict</A ></DIV > <H1 >Wrapper Types </H1 > <DIV CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="Text-JSON.html#t%3AJSString" TARGET="main" >JSString</A > </DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AtoJSString" TARGET="main" >toJSString</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AfromJSString" TARGET="main" >fromJSString</A ></DIV > <DIV CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="Text-JSON.html#t%3AJSObject" TARGET="main" >JSObject</A > e</DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AtoJSObject" TARGET="main" >toJSObject</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AfromJSObject" TARGET="main" >fromJSObject</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AresultToEither" TARGET="main" >resultToEither</A ></DIV > <H1 >Serialization to and from Strings. </H1 > <H2 >Reading JSON </H2 > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSNull" TARGET="main" >readJSNull</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSBool" TARGET="main" >readJSBool</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSString" TARGET="main" >readJSString</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSRational" TARGET="main" >readJSRational</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSArray" TARGET="main" >readJSArray</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSObject" TARGET="main" >readJSObject</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AreadJSValue" TARGET="main" >readJSValue</A ></DIV > <H2 >Writing JSON </H2 > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSNull" TARGET="main" >showJSNull</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSBool" TARGET="main" >showJSBool</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSArray" TARGET="main" >showJSArray</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSRational" TARGET="main" >showJSRational</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSRational%27" TARGET="main" >showJSRational'</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSObject" TARGET="main" >showJSObject</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AshowJSValue" TARGET="main" >showJSValue</A ></DIV > <H2 >Instance helpers </H2 > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AmakeObj" TARGET="main" >makeObj</A ></DIV > <DIV CLASS="decl" ><A HREF="Text-JSON.html#v%3AvalFromObj" TARGET="main" >valFromObj</A ></DIV ></DIV ></DIV ></BODY ></HTML >