Json update and bug fix

If there was a typo in the url, the server would crash.