Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot handle big json #543

Closed
RoxasShadow opened this issue May 23, 2015 · 0 comments
Closed

Cannot handle big json #543

RoxasShadow opened this issue May 23, 2015 · 0 comments

Comments

@RoxasShadow
Copy link

let url = format!("http://ws.audioscrobbler.com/2.0/?method=artist.getevents&artist=nightwish&api_key=572b13444704f89c67b07a713d5e5de1&format=json");

let mut res = client.get(&url)
  .header(Connection::close())
  .send().unwrap();

let mut body = String::new();
res.read_to_string(&mut body).unwrap();
println!("{}", body);

The output is a big and cutted json string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant