var beanPropertyArray = [];
columnData = {
"1": "One",
"2": "Two",
"myFun": function ( ) {
return 1*2;
}
beanPropertyArray.push(columnData);
Noyr : now direct use the beanPropertyArray as a JSON object it will give you the function in the json data. Do NOT use JSON.stringify(beanPropertyArray).
columnData = {
"1": "One",
"2": "Two",
"myFun": function ( ) {
return 1*2;
}
beanPropertyArray.push(columnData);
Noyr : now direct use the beanPropertyArray as a JSON object it will give you the function in the json data. Do NOT use JSON.stringify(beanPropertyArray).
No comments:
Post a Comment