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


JSONfn - Nodejs plugin

nodejs plugin to convert object with functions to string and string to object.

Version - 0.31.0

Copyright (c) 2012 Vadim Kiryukhin ( vkiryukhin @ )

Home page:

License: Dual licensed under the MIT and GPL licenses:


  • JSONfn.stringify(objfn) - convert object to string;

  • JSONfn.parse(strfn) - convert string to object;


@objfn - javascript object with (or without) functions;

@strfn - string, which was produced by JSONfn.stringify() function;


var strfn = require('jsonfn').JSONfn.stringify(obj);

var objfn = require('jsonfn').JSONfn.parse(strfn);