Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
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

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

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Not able to read the Json return from liquid code because of HTML text are in different line

    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

  • yashag2255 Profile Picture
    24,539 Super User 2024 Season 1 on at
    Re: Not able to read the Json return from liquid code because of HTML text are in different line

    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!

  • gt_ Profile Picture
    10 on at
    Re: Not able to read the Json return from liquid code because of HTML text are in different line

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

    ",

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35