Serde_json::from_str on a string with multiple json objects

I have a line of code:

    let v: Value = serde_json::from_str(&contents).expect("json parse fail");

This fails when contents contains more than one json vaule -- a series of them, separated by \n's.

Question: how do I read a LIST of VALUE instead of a single VALUE ?

1 Like

@vorner : StreamDeserializer is precisely what I needed. Thanks!