Safe Haskell | None |
---|---|
Language | Haskell98 |
Haste-specific JSON library. JSON is common enough that it's a good idea to create as fast and small an implementation as possible. To that end, the parser is implemented entirely in Javascript, and works with any browser that supports JSON.parse; IE does this from version 8 and up, and everyone else has done it since just about forever.
Documentation
encodeJSON :: JSON -> JSString Source
toObject :: JSON -> JSAny Source
Create a Javascript object from a JSON object. Only makes sense in a browser context, obviously.