what if jsonValidator returned something like false instead ?

you could do something like
```
var errors = jsonValidator(value);

if(errors){
//deal with errors
} else {
//deal with valid json
}
```