This package provides a JSON content type for use with servant APIs. This can be used to render miso Value types as JSON.
import Servant.Miso.JSON (JSON)
import Miso.String (MisoString)
import Miso.JSON (ToJSON)
data Person
= Person
{ name :: MisoString
, age :: Int
} deriving stock Generic
deriving anyclass ToJSON
type API = "person" :> Capture "name" MisoString :> Get '[JSON] Personcabal buildnix develop --command bash -c 'cabal build'nix develop