I'm dabbling with a linguistics Javascript project. I'd like to build it using objects to represent Nouns and functions to store Verbs as this makes conceptualizing my project less difficult. I'm using functions as keys to an object (I've written an example below). Will it be possible to serialize this with JSON when it comes time to save the data.
function verbFn() {
//do something
}
var nouns = {};
nouns[verbFn] = 'some value';
In this example, will JSON be able to serialize "nouns"?
Uh... after reflecting on my original question and reading the comments I've come to the conclusion that trying to do things this way is just very wrong and silly.