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

Add JSON-Function for Templates #242

Merged
merged 2 commits into from
May 7, 2019
Merged

Add JSON-Function for Templates #242

merged 2 commits into from
May 7, 2019

Conversation

mkrauser
Copy link
Contributor

@mkrauser mkrauser commented May 6, 2019

This adds a json-Function to be used in String-Templates. In my Use-Case I serialize an entire Event and provide the Json-Document as Input to the ExecBee for further processing like this:

{{.|Json}}

I was not sure about the casing of "Json". I decided to go with that because it is easier to type and fits the existing functions. But technically it would be JSON.

@muesli
Copy link
Owner

muesli commented May 7, 2019

Neat! Makes me want to rethink the way we handle JSON in the HttpBee.

@muesli
Copy link
Owner

muesli commented May 7, 2019

I think JSON looks a little less weird. Want to change it to that?

@mkrauser
Copy link
Contributor Author

mkrauser commented May 7, 2019

I think JSON looks a little less weird. Want to change it to that?

Ok, no problem. I'm fine with both

@muesli muesli changed the title Add Json-Function for Templates Add JSON-Function for Templates May 7, 2019
@muesli muesli merged commit 4f5ec24 into muesli:master May 7, 2019
Mark-Jung pushed a commit to Mark-Jung/beehive that referenced this pull request May 15, 2019
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 this pull request may close these issues.

2 participants