json-sass icon indicating copy to clipboard operation
json-sass copied to clipboard

Empty JSON value

Open coxrichuk opened this issue 8 years ago • 1 comments

I am not sure if this project is still being maintained?

Would you consider seeking a maintainer?

Anyway back to the problem at hand sending through an empty value the SCSS map is returning a none quoted SCSS map value. Which then breaks SCSS the compiler.

For example I am sending through:

{ "some-key" : { "value" : "" } }

The SCSS Map is being output as:

( some-key : ( value: ) )

Ideally this would be output as:

( some-key : ( value: "" ) )

coxrichuk avatar Dec 22 '16 16:12 coxrichuk

@coxrichuk - you probably could (have) solve(d) your issue using:

{ "some-key" : { "value": "\"\"" } }

or

{ "some-key" : { "value": "''" } }

rlapoele avatar Aug 19 '18 23:08 rlapoele