I'm making a library, but people who want to use this library can only use JavaScript to add it in. So I thought why not use JSON and AJAX? Can I create functions in JSON?
Remember: This is pretty much raw javascript, just one external library called modpe is used, however programmers don't need to add the library in since it's loaded in an application.
EDIT:
I want to achieve creating an api in JSON. The problem is if I should create functions in JSON.