I'm working on developing a library with the main requirement being that users can only utilize JavaScript to implement it. The idea struck me to leverage JSON and AJAX for this purpose. Is it feasible to define functions within JSON?
Just to clarify, the project primarily involves writing JavaScript code, with the exception of utilizing an external library known as modpe. Users, however, are not required to manually insert the library as it is automatically loaded within an application.
UPDATE:
My goal is to establish an API using JSON. The dilemma at hand is whether or not it is appropriate to create functions directly in JSON.