question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strings inside of arrays get modified in some cases

See original GitHub issue

Sorry 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:closed
  • Created 2 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
tryashtarcommented, May 25, 2021

Oh, it looks like it only happens for me when keep_arrays_single_line is set to true in the settings

0reactions
TerminalFicommented, Jun 12, 2021

Fixed with latest release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found