homepage: ''
changelog-type: markdown
hash: c60da07629e34005ee0da856c510ccc9345920ea753782f655f1f8b56531fa0c
test-bench-deps: {}
maintainer: lukec@themk.net
synopsis: Load JSON from files in a directory structure
changelog: |
  # Revision history for json-directory

  ## 0.1.0.0 -- 2019-12-17

  * Initial version
basic-deps:
  json-directory: -any
  bytestring: -any
  base: ! '>=4.12.0.0 && <4.13'
  unordered-containers: -any
  text: -any
  filepath: -any
  aeson: -any
  directory: -any
all-versions:
- 0.1.0.0
author: Luke Clifton
latest: 0.1.0.0
description-type: markdown
description: |
  Provides utilities for reading JSON structures out of directories. Directory
  entries become keys in a map, and the values are sourced from the contets of
  each entry.

   * Directories are recured into
   * Files ending with `.json` are read as JSON values
   * Everything else is interpreted as a string

  The [example](./example) directory in this repository would result in
  the following JSON value.

  ```json
  {
    "empty": {},
    "a": "This is files will have its contents written into a JSON string.\n",
    "d": {
      "example": "Sometimes it's convenient to embed some raw JSON"
    },
    "b": 42,
    "c": {
      "nested": "You can nest directories to create a tree structure.\n"
    }
  }
  ```
license-name: BSD-3-Clause

Update from Hackage at 2019-12-18T12:03:55Z
Update from Hackage at 2019-12-18T12:03:55Z
