remove the gem sinatra/contrib and replace the JSON logic