Creating fields from query (pipelines?)

Your problem not fully clear for me, but.
You wrote a simple sting,and a pipeline, what try to process json.
Your sting not in json format.

I suggest something like that