Pat,

If you match the entire text, you should be able to do something like
the following as the replacement:

{ "array": $1 }

I didn't try this, but I think it should put the array into a JSON
object. Although an array may be a valid JSON "object", I don't think
Elasticsearch accepts them as such.

Regards,
Matt


On Fri, Oct 20, 2017 at 11:14 AM, pat <[email protected]> wrote:
> I want to put the whole array in as a single document.  I thought the array
> already was a JSON object.  How should I change it (via ReplaceText) so that
> elastic will accept it?
>
> thank you
>
> Pat
>
>
>
> --
> Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/

Reply via email to