Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PromptPlus.WriteLine does not print stringified JSON #123

Open
mohaidr opened this issue Jan 27, 2024 · 1 comment
Open

PromptPlus.WriteLine does not print stringified JSON #123

mohaidr opened this issue Jan 27, 2024 · 1 comment

Comments

@mohaidr
Copy link

mohaidr commented Jan 27, 2024

The below line of code breaks with the following error Error: Could not find color or style ' '.

PromptPlus.WriteLine("[\r\n  {\r\n    \"statusCode\": 509,\r\n    \"statusReason\": \"509\",\r\n    \"sum\": 1500\r\n  }\r\n]{\r\n  \"sumResponseTime\": 1462553.39,\r\n  \"averageResponseTime\": 243.76,\r\n  \"minResponseTime\": 0,\r\n  \"maxResponseTime\": 1480.45,\r\n  \"p90ResponseTime\": 752,\r\n  \"p50ResponseTime\": 107,\r\n  \"p10ResponseTime\": 80\r\n}");

And the below line throws the error Error: Encountered malformed markup tag at position 101.

PromptPlus.WriteLine("\"[\\r\\n  {\\r\\n    \\\"statusCode\\\": 509,\\r\\n    \\\"statusReason\\\": \\\"509\\\",\\r\\n    \\\"sum\\\": 1\\r\\n  }\\r\\n]");
@ividyon
Copy link
Contributor

ividyon commented Jan 29, 2024

Check out issue #65.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants