I'm having some issues trying to parse a JSON file from OneDrive for Business
{"Prueba":"Hola mundo"}
json(base64ToString(trigger()['outputs']['body']['$content']))
Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2816': 'The template language function 'json' parameter is not valid. The provided value '{
"Prueba":"Hola mundo"
}' cannot be parsed: 'Unexpected character encountered while parsing value: . Path '', line 0, position 0.'. Please see https://aka.ms/logicexpressions#json for usage details.'.
Solved! Go to Solution.
hi @_jesan_ maeby I did what you want
base64ToString(triggerBody()?['$content'])
result.
Proud to be a Flownaut!
I've found the problem of the issue.
The program that creates JSON's files was using a utf-8 with BOM.
I created another file with flow and noticed this difference that file must be created with utf-8 codification.
Thanks four your replies.
Hi @_jesan_
Could you please post a screenshot of your flow?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my bloghi @_jesan_ maeby I did what you want
base64ToString(triggerBody()?['$content'])
result.
Proud to be a Flownaut!
Proud to be a Flownaut!
Hi, I tried your aproach but I get same results
Result:
I noticed there's difference in each output action result when JSON is involved.
It seems that when a output is identified as a valid JSON the pair "name:value" is shown with color, but when I use the first Compose action it seems that this colors are not shown in the same way.
I've found the problem of the issue.
The program that creates JSON's files was using a utf-8 with BOM.
I created another file with flow and noticed this difference that file must be created with utf-8 codification.
Thanks four your replies.
User | Count |
---|---|
98 | |
40 | |
27 | |
23 | |
16 |
User | Count |
---|---|
130 | |
52 | |
48 | |
36 | |
24 |