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

support for JSON number as variables #30

Closed
alex-bluetrain opened this issue May 20, 2020 · 4 comments · Fixed by #32
Closed

support for JSON number as variables #30

alex-bluetrain opened this issue May 20, 2020 · 4 comments · Fixed by #32

Comments

@alex-bluetrain
Copy link

it's not possible to use json numbers as variable in the template without breaking the json format,

example

{
    "name": "{user.name}",
    "age": {{user.age}}
}

when importing such file you get an Unexpected token { in JSON at ...

I could enclose the age value in doublequotes, but that will make it a string and violates the format I'm supposed to be compliant with. (HL7 FHIR objects)

@curran
Copy link
Member

curran commented May 20, 2020

PRs welcome :)

@curran
Copy link
Member

curran commented Sep 15, 2020

@alex-bluetrain Do you have any ideas for how to potentially solve this? I agree it would be a nice feature to have.

@curran curran mentioned this issue Sep 15, 2020
@curran
Copy link
Member

curran commented Sep 15, 2020

I've added a failing test case for this here #32

curran added a commit that referenced this issue Sep 15, 2020
@curran
Copy link
Member

curran commented Sep 15, 2020

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

Successfully merging a pull request may close this issue.

2 participants