[WIP] add json rest api

- [ ] executeJSON func, wrapper for returning json