12. A machine-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, cause performing: obtaining and storing one or more annotations that annotate one or more attribute declarations of a base object of an object-oriented programming environment, wherein the one or more annotations denote one or more JavaScript Object Notation (JSON) attributes; at runtime of an executable computer program that has been created using the base object: generating a JSON object based upon the base object; retrieving the annotations; creating a JSON header that comprises the annotations in a format compatible with a function library that expects name-value pair declarations; attaching the JSON header to the JSON object; renaming an attribute of the JSON object to an items attribute; wherein at least the generating, creating and renaming are performed by one or more processors.
12. A machine-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, cause performing: obtaining and storing one or more annotations that annotate one or more attribute declarations of a base object of an object-oriented programming environment, wherein the one or more annotations denote one or more JavaScript Object Notation (JSON) attributes; at runtime of an executable computer program that has been created using the base object: generating a JSON object based upon the base object; retrieving the annotations; creating a JSON header that comprises the annotations in a format compatible with a function library that expects name-value pair declarations; attaching the JSON header to the JSON object; renaming an attribute of the JSON object to an items attribute; wherein at least the generating, creating and renaming are performed by one or more processors. 14. The machine-readable storage medium of claim 12 , wherein the instructions that cause obtaining and storing the one or more annotations comprise the instructions that cause receiving and storing a configuration file that comprises a class name, and one or more tags, each tag associating a name of a class attributes used in the class with a JSON attribute.