JSON.stringify function

后端 未结 5 892
谎友^
谎友^ 2020-11-27 04:56

I have an object that has some properties and methods, like so:

{name: \"FirstName\",
age: \"19\",
load: function () {},
uniq: 0.5233059714082628}

5条回答
  •  清歌不尽
    2020-11-27 05:22

    In fact, It's very easy to serealize / parse javascript object with methods.

    Take a look at JSONfn plugin.

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

    Hope this helps.

    -Vadim

提交回复
热议问题