# Asana API notes not considering new line or \\n or line break

**URL:** <https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702>\
**Category:** API & Developers\
**Created:** [9 May 2018 09:52 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702 "2018-05-09T09:52:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nalini\_Garigapati](https://luna1.co/8d76cd.png) [@Nalini\_Garigapati](https://forum.asana.com/u/Nalini_Garigapati)\
**Post date:** [9 May 2018 09:52 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/1 "2018-05-09T09:52:18Z")

</div>

In html\_notes or notes tag I am passing \n in newline place. Its showing error message “Could not parse request data, invalid JSON”. If I replace that \n value with any tag like

 ,  
 , -

---

<div class="post-metadata">

**Author:** ![Todd\_Heflin](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/todd_heflin/32/25841_2.png) [@Todd\_Heflin](https://forum.asana.com/u/Todd_Heflin)\
**Post date:** [9 May 2018 13:25 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/2 "2018-05-09T13:25:14Z")

</div>

You might find this site helpful [jsonlint.com](https://jsonlint.com/) or this site [jsonviewer.stack.hu/](http://jsonviewer.stack.hu/)  
Anyway, I’m a Python guy and I can get your code to parse using the validator above by removing the type of _string_. I can also get the Viewer on the jsonviewer site to parse it out correctly if I remove your _string_ type. Your jsonString returns this error:

Error: Parse error on line 1:  
string jsonString =  
^  
Expecting ‘STRING’, ‘NUMBER’, ‘NULL’, ‘TRUE’, ‘FALSE’, ‘{’, ‘[’, got ‘undefined’ \<\<This usually means an extra comma somewhere but I don’t think that is the issue.

If I remove the type of _string_ from in front of jsonString= it validates; so I’m assuming [I’m not a JSON guy] that you are setting an explicit type of string while filling your array with non-strings?  
In Python your code runs by simply changing your nulls to None and removing the word string [Python doesn’t Type arrays and null is not a reserved word].

Sorry, If I’ve not helped you at all, but maybe some of this will get you in the right direction.

---

<div class="post-metadata">

**Author:** ![Nalini\_Garigapati](https://luna1.co/8d76cd.png) [@Nalini\_Garigapati](https://forum.asana.com/u/Nalini_Garigapati)\
**Post date:** [10 May 2018 07:09 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/3 "2018-05-10T07:09:40Z")

</div>

I got the solution by replacing @ before \n.  
Here is the example syntax  
notes= notes.Replace(“\r\n”, @“\n”);

---

<div class="post-metadata">

**Author:** ![Pietro\_Tavares1](https://luna1.co/8d76cd.png) [@Pietro\_Tavares1](https://forum.asana.com/u/Pietro_Tavares1)\
**Post date:** [5 May 2020 21:07 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/5 "2020-05-05T21:07:51Z")

</div>

Solution above isn’t working for me.

Seriously, having no support for **p** or **br** tags feels like a bad joke.  
Now I’m late on schedule because I can’t add a newline to my html thanks to your crappy pathetic API.

---

<div class="post-metadata">

**Author:** ![Webi\_Hapsara](https://luna1.co/8d76cd.png) [@Webi\_Hapsara](https://forum.asana.com/u/Webi_Hapsara)\
**Post date:** [7 June 2020 07:43 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/6 "2020-06-07T07:43:03Z")

</div>

Did you try using “\n”?  
It works in my code. You just have to add “\n” in your “notes” object.  
`{"notes": "Hello. \n World"}`

I know, the “html\_notes” doesn’t support “br” or “p” HTML tag.  
It’s kinda ‘trolling developer’.  
Why would they have “html\_notes” if they didn’t support using “br” or “p”?  
I hope they fixed this bug later.

---

<div class="post-metadata">

**Author:** ![anon6535477](https://luna1.co/8d76cd.png) [@anon6535477](https://forum.asana.com/u/anon6535477)\
**Post date:** [30 March 2021 15:58 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/7 "2021-03-30T15:58:45Z")

</div>

I am creating a form and need to show multiple lines on a separate line. What is the best way to display text on a separate lines?

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [30 March 2021 19:23 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/8 "2021-03-30T19:23:04Z")

</div>

Hi @anon6535477 and welcome to the forum!

The thread you’ve posted in is for software developers using the Asana programming interface. It’s best if you start a new topic in the **Tips and Tricks** forum section. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 18:57 UTC](https://forum.asana.com/t/asana-api-notes-not-considering-new-line-or-n-or-line-break/21702/9 "2025-05-30T18:57:16Z")

</div>

Closed on 30 May 2025 18:57 UTC


