How to use the json3.parse function in json3

To help you get started, we’ve selected a few json3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Mikej81 / WebRDP / node_modules / socket.io-parser / index.js View on Github external
function tryParse(p, str) {
  try {
    p.data = json.parse(str);
  } catch(e){
    return error();
  }
  return p; 
};
github jamesshore / lets_code_javascript / node_modules / socket.io-parser / index.js View on Github external
function tryParse(p, str) {
  try {
    p.data = json.parse(str);
  } catch(e){
    return error();
  }
  return p; 
};

json3

A JSON polyfill for older JavaScript platforms.

MIT
Latest version published 5 years ago

Package Health Score

58 / 100
Full package analysis

Popular json3 functions