Remove generated files from bin/
Implement JSON API requests
Fix JSON API methods