https://github.com/weblancaster/grunt-relaxed-json
Grunt task for relaxed-json
https://github.com/weblancaster/grunt-relaxed-json
Last synced: about 1 year ago
JSON representation
Grunt task for relaxed-json
- Host: GitHub
- URL: https://github.com/weblancaster/grunt-relaxed-json
- Owner: weblancaster
- License: mit
- Created: 2014-11-05T20:36:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-19T18:40:41.000Z (over 11 years ago)
- Last Synced: 2025-01-06T05:12:24.087Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 462 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Grunt-relaxed-json
==============
Grunt task for [relaxed-json](https://github.com/phadej/relaxed-json).
Relaxed JSON is strict superset JSON, relaxing strictness of valilla JSON
Requires grunt 0.4
### Install
npm install grunt-relaxed-json --save-dev
### Configure
To know more about the configuration options please visit [relaxed-json](https://github.com/phadej/relaxed-json).
Add the following (multi-)task to your Gruntfile:
```ruby
rjson: {
options: {
src: [
'some/file.json'
],
tolerant: true,
duplicate: true
}
}
```
Add the following to load the task into your Gruntfile:
```ruby
grunt.loadNpmTasks('grunt-relaxed-json');
```
An error will be thrown if the JSON file contains syntax errors related to the options passed on the task
### Release History
* 2014-11-11 v1.0.0 First official release
* 2014-11-11 v1.0.1 Code refactoring
* 2014-11-11 v1.0.2 Fix warning messages
* 2014-11-17 v1.0.3 Add recursive path and code refactoring
* 2014-11-17 v1.0.4 Update package.json
### Contributing
1. Fork it!
2. Create your branch: `git checkout -b my-new-branch`
3. Commit your changes: `git commit -am 'fix stuff'`
4. Push to the branch: `git push origin my-new-branch`
5. Submit a pull request
### License
The MIT License (MIT)
Copyright (c) 2014 Michael Lancaster
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.