Extracted JSON client functions into seperate package

Closes #317 
I think you should just remove the error, and update the documentation to actually explain the function.