Thats what i did eventually, looking forward to see the tools you mentioned
:)
Thanks!

On Fri, Aug 18, 2017 at 4:32 AM Konrad “ktoso” Malawski <
[email protected]> wrote:

> Nested streaming is somewhat tricky.
>
> You could achieve the actual streaming semantics with injecting the things
> around it,
> via something like `Source(the "header") concat streamingSource concat
> Source(“the ending ]]}]]}]”)`
>
> We have tools coming for streaming nested parsing, but not rendering so
> far.
>
> —
> Konrad `kto.so` Malawski
> Akka <http://akka.io> @ Lightbend <http://lightbend.com>
>
> On 18 August 2017 at 09:55:14, [email protected] ([email protected])
> wrote:
>
> I am trying to respond with a JSON object which has some strict values and
> some streamed values
>
> ```
> {
>   "total_results": 15,
>   "items": [
>     // Streamed JSON objects
>   ]
> }
> ```
>
> Is there a way to respond like this without injecting the surrounding data
> into the Source?
> I am currently using Play-Json that doesn't support this option natively
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to