json.package @p.name

json.screenshots @p.screenshots do |s|
  json.thumb_image_url "#{request.protocol}#{request.host_with_port}#{s.simage_url(:thumb)}"
  json.small_image_url "#{request.protocol}#{request.host_with_port}#{s.simage_url(:small)}"
  json.large_image_url "#{request.protocol}#{request.host_with_port}#{s.simage_url(:large)}"
  json.version s.version
end
