changed json response in Document#index