node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

json-parse2

js-json-parse2

JSON parsing with callbacks! It's so not try/catch/finally...

Usage

JSON.parse2('I am not JSON', function(err, json) {
  if (err) {
    console.info('FUUUUUUUUUUUUUUUUU');
  } else {
    onWithMyDay();
  }
});