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

How to keep the original value type after field is replaced in JSON file?(Boolean) #135

Open
XVCoder opened this issue Apr 26, 2022 · 0 comments

Comments

@XVCoder
Copy link

XVCoder commented Apr 26, 2022

Here goes the example:

Target JSON

{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  }
}

Transformation for the config:

{
  "Logging/IncludeScopes": true
}

Expected transformation result:

{
  "Logging": {
    "IncludeScopes": true,
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  }
}

Actually transformation result:

{
  "Logging": {
    "IncludeScopes": "True",
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  }
}

The result is: the boolean value [false] has been replaced with ["True"].
How to keep the original value type after field is replaced in JSON file?

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

1 participant