JSON formating on codenote #1279
-
TriliumNext Version What operating system are you using? What is your setup? Operating System Version Description When I paste an HTTP request containing JSON into the codeblock or blockquote, the JSON is placed on a single line, causing me to lose the proper visualization of the JSON data. I cannot find a workaround to paste JSON properly. Is there a workaround to paste JSON properly in Trillium? Trillium side BurpSuite side where the json come from Error logs Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@n1kn0w , I suspect that the copy function in BurpSuite copies it in that format, since you are actually previewing a formatted response rather than the actual response which is probably without indentation. Check if you have the same issue if pasting in a basic text editor (a la Notepad). If so, the solution is to paste the JSON in a prettifier first such as https://eliandoran.github.io/toolkit/json-formatter. Then copy it into Trilium. |
Beta Was this translation helpful? Give feedback.
-
Hi @eliandoran |
Beta Was this translation helpful? Give feedback.
-
general advice for any program or location when pasting doesn't produce desired result: try |
Beta Was this translation helpful? Give feedback.
@n1kn0w , I suspect that the copy function in BurpSuite copies it in that format, since you are actually previewing a formatted response rather than the actual response which is probably without indentation.
Check if you have the same issue if pasting in a basic text editor (a la Notepad). If so, the solution is to paste the JSON in a prettifier first such as https://eliandoran.github.io/toolkit/json-formatter. Then copy it into Trilium.