A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/plokhotnyuk/jsoniter-scala/issues/923 below:

JsonReaderException when parsing other JSON within scanValuesFromStream · Issue #923 · plokhotnyuk/jsoniter-scala · GitHub

Hello, I just discovered that if I call scanJsonValuesFromStream to parse a file of JSON objects, then try to parse separate JSON from within the lambda, a JsonReaderException is thrown with the message, expected '{', offset: 0x00000000, buf: .... The buffer data shown is in a location within the InputStream.

example:

val aData: String = ???
val in: InputStream = ???
Using.resource(in) { in =>
  scanJsonValuesFromStream[A](in) { a =>
    readFromString[A](aData)
  }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4