1. A computer-implemented method comprising: obtaining and storing one or more annotations that denote, as a JavaScript Object Notation (JSON) attribute, one or more attribute declarations of a base object of an object-oriented programming environment; 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; modifying the JSON object to include an items attribute; wherein at least the generating, creating and modifying are performed by one or more processors.