Fixed as asked for in code review comment from 'thordurorn' to commit '90e70b7d5150d847f6ae56d1c468d93c5b4d460b'. JSON response fixed and URL fixed so it complies with REST.