JSON added to api

Slight documentation in readme. Will add more later