In my case, I forgot to add "controllers" folder in the component's main XML file.
For the JSON format, I can generate a view with the name "view.json.php", and then call it using "&view=NAME&format=json"