nodejs plugin to convert jsvascript objects with functions into a string and convert this string back to the object.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README.md
jsonfn.js
package.json

README.md

JSONfn - Nodejs plugin

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

Version - 0.30.0

Copyright (c) 2012 Vadim Kiryukhin ( vkiryukhin @ gmail.com )

Home page: http://www.eslinstructor.net/jsonfn/

License: Dual licensed under the MIT and GPL licenses:

http://www.opensource.org/licenses/mit-license.php

http://www.gnu.org/licenses/gpl.html

##Description

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

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

PARAMETERS:

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

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

USAGE:

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

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