You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On JSON which has string value, space in value is removed on minify.
Example
{
"headers": "Content-Type:application/json\nAccept: application/json",
"body": "{"login":{"username": "${username}","password": "${password}"}}"
}
Space in values are removed on Minify. Example, after Accept:, between username, between pasword...
This is after beautified, minified JSON. (problem is creted during minify operation
{
"headers": "Content-Type:application/json\nAccept:application/json",
"body": "{"login":{"username":"${username}","password":"${password}"}}"
}
Your environment
OS: Windows 10
MinifyAll: 2.4.13
VS Code: 1.52.1 user install
The text was updated successfully, but these errors were encountered:
It should work as expected, right? I mean, the space removed is not making your code wrong. If this is a JSON, then the space after the ":" is useless.
Does the minified code give you any kind of problem compared to the non-minified one?
It should work as expected, right? I mean, the space removed is not making your code wrong. If this is a JSON, then the space after the ":" is useless.
Does the minified code give you any kind of problem compared to the non-minified one?
Thanks for posting out!
Data between " and " should not be changed in any way. This is a string value.
It didn't influence me for now, but there could be data, that need to preserve space.
{"key":"val ue"} this should not be translated into {"key":"value"}
BTW, I have JSON as string value. To have " inside string value, I have to use \ before ".
So: "{\"login\":{\"username\": \"${username}\",\"password\": \"${password}\"}}" Bold is value that should not be checked or minified in any way.
🐞 Bug Report
Describe the bug
Version 2.4.13 on VS Code 1.52.1
On JSON which has string value, space in value is removed on minify.
Example
{
"headers": "Content-Type:application/json\nAccept: application/json",
"body": "{"login":{"username": "${username}","password": "${password}"}}"
}
Space in values are removed on Minify. Example, after Accept:, between username, between pasword...
This is after beautified, minified JSON. (problem is creted during minify operation
{
"headers": "Content-Type:application/json\nAccept:application/json",
"body": "{"login":{"username":"${username}","password":"${password}"}}"
}
Your environment
MinifyAll: 2.4.13
VS Code: 1.52.1 user install
The text was updated successfully, but these errors were encountered: