More stuff for the JSON API calls... things seem to be working
again after switching to using proper REST api.