js

json_sanitizer

Parse any JSON that would be valid in javascript

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

json_sanitizer

Parse any JSON that would be valid in javascript

Example

var json_sanitizer = require('json_sanitizer');

//Fill the json variable with javascript valid JSON
var json = "{ s_id:\"0\",\"t\":[1414696794,1414696788,1414696776,1414696764,1414696752,1414696740,], \"vrms\":[119.589,119.514,119.607,119.641,119.361,119.486],\"irms\":[ 0.366, 0.366, 0.362, 0.364, 0.366, 0.362, ],  \"app\": [ 43.813, 43.785, 43.327, 43.576, 43.729, 43.283, ],  \"core_id\": \"53ff6d065067544847310187\", }";

json_sanitizer(json, function(err, result){
    if (!err) {
        console.log(JSON.parse(result)); //should never throw an error
    } else {
        console.log("ERROR", err);
    }
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial