Thanks. I already started the way you mention.

On Tuesday, 16 April 2019 01:29:47 UTC+2, Tatu Saloranta wrote:
>
> On Mon, Apr 15, 2019 at 4:18 PM Udhayabalachandar Chandarsekran 
> <udhayabalachandar.chandarsek...@gmail.com <javascript:>> wrote: 
> > 
> > Hi, 
> > I have a json file in below format,  how could parse this JSON file 
> using ur json parser. 
> > 
> > the Header values are reside in the json file, how can I separate value 
> and the json messages.  Please help me to filter out the header and msg 
> separately using FASTXML. 
>
> Unfortunately this is not really JSON, but a document that contains 
> stuff, followed by what would be valid JSON. 
> Jackson does not have anything specific to support such content. 
>
> But it should be possible for you to write something to first handle 
> lines that start with hyphen (since that kind of content can not start 
> a JSON document) 
> and then after last one, collect remaining content, create input and 
> pass that to Jackson. 
>
> I hope this helps, 
>
> -+ Tatu +- 
>
> > 
> > 
> > -X POST /capability/b167-01/authorisationprofile/flv000120/v1/events 
> > -H "accept: application/json" 
> > -H "content-type: application/vnd.api+json" 
> > -H "X-Transaction-MessageId: 594dde6e-c7ca-4422-bab0-7f40e34f52d1" 
> > -H "X-Transaction-DateTimeCreated: 2017-05-30T09:44:34Z" 
> > { 
> >    "serviceData":{ 
> >       "events":[ 
> >          { 
> >             "eventCommonContext":{ 
> >                "transaction":{ 
> >                   "messageId":"114f7a5c-659a-4397-8437-b463ec0a5bc3", 
> >                   
> "conversationId":"f578bc44-00ae-4ac7-86d2-3e8c40ad0326", 
> >                   "dateTimeCreated":"2017-05-30T09:40:14Z" 
> >                }, 
> >                "documentation":{ 
> >                   "contractVersion":"1.0.65348" 
> >                } 
> >             }, 
> >             "eventServiceData":{ 
> >                "authorisationProfileDeleted":{ 
> >                   "authorisationProfileIdentifier":{ 
> >                      "id":"Auth#001", 
> >                      "idScope":{ 
> >                         "value":"PUBLIC" 
> >                      } 
> >                   }, 
> >                   "idContext":{ 
> >                      "value":"B167" 
> >                   } 
> >                } 
> >             } 
> >          } 
> >       ] 
> >    } 
> > } 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "jackson-user" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jackso...@googlegroups.com <javascript:>. 
> > To post to this group, send email to jackso...@googlegroups.com 
> <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jackson-user+unsubscr...@googlegroups.com.
To post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to