Attempting to set up JSON API, not looking good so far