You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2019/01/08 02:10:02 UTC

[jira] [Updated] (NIFI-5887) JOLTTransformJSON advanced window JSON format validation should accept EL without double quote

     [ https://issues.apache.org/jira/browse/NIFI-5887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Kawamura updated NIFI-5887:
--------------------------------
    Description: 


i have a attribute (that produced by a REST service and catched by invokeHTTP processor) in JSON format like this:
{code:java}
test => {"key":"value"}{code}
and then i want to put it in flows JSON content using JOLT processor, my content is something like this:
{code:java}
{ "id": 123, "user": "foo" }{code}
and my JOLT specification is this:
{code:java}
[{ "operation": "default", "spec": { "interest": "${test}" } }]{code}
the problem is here that, in JOLT advanced window with test attribute nifi cannot put json object and shown this error:
{quote}*"Error occurred during transformation"*
{quote}
and when run processor this detailed error is become alerted:
{quote}*"unable to unmarshal json to an object"*
{quote}
----
my desired result is this:
{code:java}
{ "id": 123, "user": "foo", "interest": {"key":"value"} }{code}
is this a bug or am i wrong?

  was:
i have a attribute (that produced by a REST service and catched by invokeHTTP processor) in JSON format like this:
{code:java}
test => {"key":"value"}{code}
and then i want to put it in flows JSON content using JOLT processor, my content is something like this:
{code:java}
{ "id": 123, "user": "foo" }{code}
and my JOLT specification is this:
{code:java}
[{ "operation": "default", "spec": { "interest": "${test}" } }]{code}
the problem is here that, in JOLT advanced window with test attribute nifi cannot put json object and shown this error:
{quote}*"Error occurred during transformation"*
{quote}
and when run processor this detailed error is become alerted:
{quote}*"unable to unmarshal json to an object"*
{quote}
----
my desired result is this:
{code:java}
{ "id": 123, "user": "foo", "interest": {"key":"value"} }{code}
is this a bug or am i wrong?


> JOLTTransformJSON advanced window JSON format validation should accept EL without double quote
> ----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-5887
>                 URL: https://issues.apache.org/jira/browse/NIFI-5887
>             Project: Apache NiFi
>          Issue Type: Improvement
>    Affects Versions: 1.7.0
>            Reporter: meh
>            Priority: Major
>              Labels: attribute, jolt, json
>         Attachments: NIFI-5887_JOLT_with_JSON_attribute_value.xml
>
>
> i have a attribute (that produced by a REST service and catched by invokeHTTP processor) in JSON format like this:
> {code:java}
> test => {"key":"value"}{code}
> and then i want to put it in flows JSON content using JOLT processor, my content is something like this:
> {code:java}
> { "id": 123, "user": "foo" }{code}
> and my JOLT specification is this:
> {code:java}
> [{ "operation": "default", "spec": { "interest": "${test}" } }]{code}
> the problem is here that, in JOLT advanced window with test attribute nifi cannot put json object and shown this error:
> {quote}*"Error occurred during transformation"*
> {quote}
> and when run processor this detailed error is become alerted:
> {quote}*"unable to unmarshal json to an object"*
> {quote}
> ----
> my desired result is this:
> {code:java}
> { "id": 123, "user": "foo", "interest": {"key":"value"} }{code}
> is this a bug or am i wrong?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)