web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Not able to read the J...
Power Pages
Unanswered

Not able to read the Json return from liquid code because of HTML text are in different line

(0) ShareShare
ReportReport
Posted on by

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 ErrorJson Error

 

How can I resolve this? Any help will be appreciable.

Thanks,

Amit

Categories:
I have the same question (0)
  • gt_ Profile Picture
    10 on at

    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>\

    &nbsp;\

    ",

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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>&nbsp;"

     

    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!

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard