Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean values in JSON get improperly "stringified" #93

Open
thomgre opened this issue Sep 5, 2019 · 4 comments
Open

Boolean values in JSON get improperly "stringified" #93

thomgre opened this issue Sep 5, 2019 · 4 comments

Comments

@thomgre
Copy link

thomgre commented Sep 5, 2019

I've noticed that specifying an unquoted boolean value for a JSON file property will result in an incorrect value. For example:

Target file:

{
  "UseMySetting": false
}

Magic-chunks transformation (expected result):

{
  "UseMySetting": true
}

Actual:

{
  "UseMySetting": "True"
}

This will result in a valid JSON file but is not the expected end result with a correct JSON boolean value.

@TLA020
Copy link

TLA020 commented Feb 5, 2020

I'm dealing with that same problem.

@bh3605
Copy link

bh3605 commented Jul 7, 2021

This issue needs more attention.

@XVCoder
Copy link

XVCoder commented Apr 26, 2022

Same problem. 😭

@thomgre
Copy link
Author

thomgre commented Apr 26, 2022

I'd suggest to use the ReplaceTokens task from colindembovsky instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants