Skip to content

Olivine-Labs/lusty-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.