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

Escape character not working #252

Open
Rachi11 opened this issue Nov 30, 2022 · 1 comment
Open

Escape character not working #252

Rachi11 opened this issue Nov 30, 2022 · 1 comment

Comments

@Rachi11
Copy link

Rachi11 commented Nov 30, 2022

Hi, while trying out the example for escape character, the output string is not escaping the escape character.
JSON Input:
{
"arg": 1,
"arr": [
{
"id": 1,
"val": 100
},
{
"id": 2,
"val": 200
}
]
}

Transformer:
{
"sharp": "/#not_a_function",
"sharp_arg": "#xconcat(/#not,_a_function_arg)"
}

Code:
string input = File.ReadAllText("Input.json");

string transformer = File.ReadAllText("transformer.json");

string transformedString = JsonTransformer.Transform(transformer, input);

Console.WriteLine(transformedString);

Output:
{"sharp":"/#not_a_function","sharp_arg":"/#not_a_function_arg"}

Can you suggest why the transformed string is not escaping the character ?

@Courela
Copy link
Contributor

Courela commented Nov 30, 2022

Which version are you using? It works with version 4.2.0

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

2 participants