Hi Experts,
I am reading an entity data which have one field (data type: multiline text ) that consist HTML scripts but I am getting below error while reading the data:
Uncaught SyntaxError: Unexpected token
in JSON at position 332
Json Error
How can I resolve this? Any help will be appreciable.
Thanks,
Amit
Hi @yashag2255 @gt_
Thanks for the response but I got the solution for this i.e | strip_newlines liquid filter makes all in one line.
Thanks,
Amit
Hi @Anonymous
Power Apps Portals does not recognize value of a key in JSON that is passed in multiple lines. You need to keep the value in a single line to make it work.
You can update the JSON to either below mentioned snippet or add backslash towards the end of line so that the system knows there is a continuation.
"KA_Content":"Es un articulo de pruba <br><strong>Para no ver en el portal</string><br> "
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Try adding backslashes like this example demonstrates. For you, it should be:
"KA_Content": "Es un artĂculo de prueba<br>\
<strong>Para no ver en el portal</strong><br>\
\
",