1. A computer-implemented method comprising: 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.