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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 38 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 35

#3
Fubar Profile Picture

Fubar 23 Super User 2026 Season 1

Last 30 days Overall leaderboard