Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 513 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 513 Bytes

lusty-json

Version 1.0

add json input and output handling to your lusty requests. automatically decodes or encodes based on content type / accept type http headers.

output writes the result of context.output as the json response.

Require it in your config:

local config = {
  --...
  input = {
    ['lusty-json.input'] = { }
  },
  -...
  output = {
    ['lusty-json.output'] = { }
  }
}

License

Copyright 2013 Olivine Labs, LLC. MIT licensed. See LICENSE file for details.