[ 
https://issues.apache.org/jira/browse/METRON-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16149538#comment-16149538
 ] 

ASF GitHub Bot commented on METRON-1146:
----------------------------------------

Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/metron/pull/727#discussion_r136436430
  
    --- Diff: 
metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/dsl/functions/StringFunctionsTest.java
 ---
    @@ -449,4 +450,68 @@ public void testCountMatches() throws Exception {
         Assert.assertTrue(thrown);
     
       }
    +
    --- End diff --
    
    Would it be possible for you to use the 
    ```java
    @multiline
    ```
    Annotation for defining your json strings instead of inline concatenation 
and escaping?  It makes it more readable.


> Add ability to parse JSON string into JSONObject for stellar
> ------------------------------------------------------------
>
>                 Key: METRON-1146
>                 URL: https://issues.apache.org/jira/browse/METRON-1146
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Anand Subramanian
>            Assignee: Anand Subramanian
>
> Use jackson to parse a given JSON string and return a JSONObject on the 
> stellar. For example:
> {code}
> MAP_GET( 'bar', PARSE_JSON_STRING(  '{ "foo" : 1, "bar" : 2}' )
> {code}
> would give the output 2



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to