Johnny Everson
Johnny Everson

Reputation: 8601

How can I convert a Iterator[JsValue] into JsArray?

I have an Iterator[JsValue] and need to convert that into a single JsValue. How can I do that in Play 2.1?

Upvotes: 1

Views: 552

Answers (1)

Johnny Everson
Johnny Everson

Reputation: 8601

In the end, it is just:

Json.toJson(scalaIterator)

Upvotes: 2

Related Questions