ASF GitHub Bot commented on METRON-434:

GitHub user cestella opened a pull request:


    METRON-434: JSON Parser

    There are some situations where your data is already in JSON form and 
parsing should be as simple as passing the data through, adding `timestamp` and 
`original_message` along the way.  This JIRA will create a parser which will 
take a JSON map in.
    Since we have standardized on one-dimensional maps, we must handle data 
which contains inner maps.  Inner maps should be handled pluggably by doing one 
of the following (configurably):
    * doing nothing
    * unfolding maps (e.g. `{ "foo" : { "bar" : 7 } }` is transformed into 
`{"foo.bar" : 7 }`)
    * throwing an exception
    * dropping the inner map

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cestella/incubator-metron METRON-434

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #261
commit 0c8bb5c4ab04f9e19859981cea5bfe58b868a16f
Author: cstella <ceste...@gmail.com>
Date:   2016-09-07T20:47:03Z

    Initial commit for identity parser.

commit 151a54b07832aef82c95a4fd59a2b0a0bc30e005
Author: cstella <ceste...@gmail.com>
Date:   2016-09-19T13:07:28Z

    Merge branch 'master' into identity_parser

commit ffa7b5297f4013aa7aa364f49bae1c2eb6c4ee3a
Author: cstella <ceste...@gmail.com>
Date:   2016-09-19T15:13:07Z

    updating to have a handler for maps.

commit 68be22f5e1b72172e415909340c121c974651414
Author: cstella <ceste...@gmail.com>
Date:   2016-09-19T22:14:04Z

    METRON-434: JSON Parser

commit 860e8302cb1edf0c9178b37093a7930cd068ff92
Author: cstella <ceste...@gmail.com>
Date:   2016-09-19T22:17:49Z

    Merge branch 'identity_parser' into METRON-434


> JSON Parser
> -----------
>                 Key: METRON-434
>                 URL: https://issues.apache.org/jira/browse/METRON-434
>             Project: Metron
>          Issue Type: New Feature
>    Affects Versions: 0.2.1BETA
>            Reporter: Casey Stella
>            Assignee: Casey Stella
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> Create a parser which will take a JSON map in.  
> Inner maps should be handled pluggably by:
> * doing nothing
> * unfolding maps (e.g. `{ "foo" : { "bar" : 7 } }` is transformed into 
> `{"foo.bar" : 7 }`
> * Throwing an exception
> * Dropping the inner map.

This message was sent by Atlassian JIRA

Reply via email to