Jici
4
This will create an error for sure as you are encoding a list of text, each item, as json safe and not the whole thing. So you will have something like
"medication_source":"texta","textb","textc" … that is not a valid json. But to be able to help you, we need to know what the API expect… an array of string? in this case, you just need to add square brackets around it "medication_source":["texta","textb","textc"] but if you need something different, you may need to use :format as text instead.