aeson-parsec-picky-0.1.0.1: Alternative JSON parser based on Parsec and Aeson

Copyright(c) 2015, Matej Kollar
LicenseBSD3
Maintainer208115@mail.muni.cz
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Parser.Parsec.Picky

Contents

Description

JSON parser with nice error messages and little more strict syntax (whitespace-wise).

In most cases you would want to use either value or object parser.

Synopsis

Parsers

string :: Parser Value Source

Parse just JSON string and nothing more.

object :: Parser Value Source

Parse just JSON object and nothing more.

array :: Parser Value Source

Parse just JSON array and nothing more.

number :: Parser Value Source

Parse just JSON number and nothing more.

bool :: Parser Value Source

Parse just JSON bool and nothing more.

null :: Parser Value Source

Parse just JSON null and nothing more.

value :: Parser Value Source

Parse any JSON value but nothing more.

Convenience functions

eitherDecode :: FromJSON a => SourceName -> Text -> Either String a Source

Convenience function to parse JSON.