Strings inside of arrays get modified in some cases
See original GitHub issueSorry if this is a duplicate, I couldn’t find anything. When I format this JSON, the string inside gets modified to include spaces:
# array changes
["a,b,c"]
↓
["a, b, c"]
# object is fine though
{"a,b,c":"a,b,c"}
↓
{
"a,b,c": "a,b,c"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
Top Results From Across the Web
Modifying a string array inside of a function - Stack Overflow
In the make() function, you are parsing a local variable. As such, the strtok() ...
Read more >Modify array inside function in C - Zeyuan Hu's page
In this post, I want to write down the lesson learned about modifying array inside a function in C with an example from...
Read more >Java String Array- Tutorial With Code Examples
This tutorial on Java String Array Explains how to Declare, Initialize & Create String Arrays in Java and Conversions that we can Carry...
Read more >How to Manipulate Arrays in JavaScript - freeCodeCamp
Arrays can be manipulated by using several actions known as methods. Some of these methods allow us to add, remove, modify and do...
Read more >Storage for Strings in C - GeeksforGeeks
When strings are declared as character arrays, they are stored like other types of arrays in C. For example, if str[] is an...
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 Free
Top 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
Oh, it looks like it only happens for me when
keep_arrays_single_line
is set to true in the settingsFixed with latest release