JSON-Combinator-Examples-0.0.1: Example uses of the JSON-Combinator library.

Text.JSON.Combinator.Examples

Synopsis

Documentation

example1Source

Arguments

:: FilePath

The JSON object file name

-> IO () 

Using both Text.JSON and Text.JSONb, then given a file name of a JSON object, go through each field of that object and:

  • If it is a string, reverse it
  • If it is a number, add 1 to it
  • If it is a boolean, invert it

then pretty-print the result of each of the parsers.