How to use the json/cycle.retrocycle function in json

To help you get started, we’ve selected a few json 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 jondubois / nombo / node_modules / ndata / formatter.js View on Github external
module.exports.parse = function(buffer, skipRetrocycle)  {
	var firstParse = json.parse(buffer.toString());
	var secondParse;
	var i;
	if(skipRetrocycle) {
		secondParse = firstParse;
	} else {
		secondParse = cycle.retrocycle(firstParse);
	}
	return secondParse;
}
github jondubois / nombo / node_modules / ncom / formatter.js View on Github external
module.exports.parse = function (buffer, skipRetrocycle) {
	var firstParse = json.parse(buffer.toString());
	var secondParse;
	var i;
	if (skipRetrocycle) {
		secondParse = firstParse;
	} else {
		secondParse = cycle.retrocycle(firstParse);
	}
	return secondParse;
};