yesod-json-0.2.2: Generate content for Yesod using the aeson package.




Convert from a JSON value

defaultLayoutJson :: Yesod master => GWidget sub master () -> Value -> GHandler sub master RepHtmlJsonSource

Provide both an HTML and JSON representation for a piece of data, using the default layout for the HTML output (defaultLayout).

jsonToRepJson :: Value -> GHandler sub master RepJsonSource

Wraps the Content generated by jsonToContent in a RepJson.

Compatibility wrapper for old API