Finish JSON API server