Skip to content

Cannot handle big json #543

Closed
Closed
@RoxasShadow

Description

@RoxasShadow
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions