aeson-2.0.3.0: Fast JSON parsing and encoding
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.QQ.Simple

Description

Like Data.Aeson.QQ but without interpolation.

Synopsis

Documentation

aesonQQ :: QuasiQuoter Source #

Converts a string representation of a JSON value into Value at compile-time.

{-# LANGUAGE QuasiQuotes #-}

import Data.Aeson (Value)
import Data.Aeson.QQ.Simple

joe :: Value
joe = [aesonQQ|{ "name": "Joe", "age": 12 }|]