Support multiline from JSON
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[x] feature request
Current behavior
{
"multiline": [
"Some long string that ",
"would be prefered to be written over ",
"multiple lines in JSON"
]
}
Shows up on screen with the commas ,
of the array in between.
Some long string that ,would be prefered to be written over ,multiple lines in JSON
Expected/desired behavior
String without commas from array.
What is the motivation / use case for changing the behavior? To be able to use multiple lines in case of maximum line-width for readability purposes.
Please tell us about your environment:
-
ng2-translate version: 3.1.3
-
Angular version: 2.1.1
-
Browser: Chrome 54
-
Language: TypeScript 2.0.6
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top Results From Across the Web
Are multi-line strings allowed in JSON? - Stack Overflow
JSON does not allow "real" newlines in its data; it can only have escaped newlines. See the answer from @YOU. According to the...
Read more >JSON Multi-Line String - Linux Hint
JSON does not natively support multi-line strings. This can be quite frustrating when looking for flexibility and storing large texts.
Read more >Storing multi-line strings in JSON with JSONLint - Gun.io
This quick hack helps find a way to store multi-line strings in JSON to interact with JS and Node.
Read more >Working with JSON ( JSONL) & multiline JSON in Apache Spark
JSON ) on Spark 2.1 and I faced a very peculiar issue while working on Single Line JSON(aka. JSONL or JSON Lines )...
Read more >Solved: multi line string in json is being rejected.
multi line string in json is being rejected · 1. Add a compose above the HTTP action step. · 2. Construct the query...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Base on supertorpe comment. But no need to create another pipe ( which not include query translate params ) You can directly override TranslateParse.
yes, once I’ve chosen the new name / namespace, it will be easy to release new loaders like that 😃