I've found lots of questions and answers on REST API vs SOAP API.
Some of them like this one mention JSON.
Could you explain what is the difference between REST API vs JSON. (aka create custom module, controller and send JSON)
REST API can also output JSON, right? So why it's marked as separate category.
What is the difference in usage between both approaches. What are pros and cons. Please provide example if possible.