Replacing SOAP with JSON, it is a better example