اشكرك😀
Thanks!
A good Java Flink learning experience

On Sat, Jan 15, 2022, 11:47 Mariam Walid <mariamwalid2...@gmail.com> wrote:

> Hi Hans,
>
> As Kamil said, you can use Jackson. I would suggest that you read the
> input stream to be of type DataStream<String>, then create a map function
> that map each string in the stream to Jackson ObjectNode.
> This can be done as follows:
>
> ObjectMapper mapper = new ObjectMapper();
> DataStream<ObjectNode> jsonStream= inputStream.map(jsonString->
> (ObjectNode) mapper.readTree(jsonString);
>
> I hope you can benefit from this approach.
>
> Best regards,
> Mariam
>
>
>
> On Friday, January 14, 2022, HG <hanspeter.sl...@gmail.com> wrote:
>
>> Hi,
>>
>> Before starting programming myself I'd like to know whether there are
>> good examples with deserialization of JSON that I can borrow.
>> The structure of the JSON is nested with multiple levels.
>>
>> Any references?
>>
>> 'better well stolen than badly invented myself' we'd say in Dutch😁
>>
>> Regards Hans
>>
>

Reply via email to