add json support config variable
Merge pull request #5 from jobready/add_json_support

add use_json config variable to support JSON requests