-
Notifications
You must be signed in to change notification settings - Fork 270
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
syntax: Add json_encode
to stdlib
#152
Comments
Interesting idea, I wouldn't be against having a json_encode function :) |
json_encode
to stdlib of Riverjson_encode
to stdlib
This issue has not had any activity in the past 30 days, so the |
Hi, could you expand a little bit on the use case? |
@wildum What further expansion of the use case were you expecting? Blackbox requires a JSON configuration file, which right now we have to provide as a string. So it would be nice if we could use River's syntax to generate the configuration instead. This would allow calling things like |
That's the part I was curious about. I could not see which component export would make sense here but sys.env sounds useful. Adding concrete examples to proposals helps for review. If you could update your example by adding the sys.env + other refs to Alloy values that you would find useful there, that would be great. I move the proposal to Active and will suggest it in next week's meeting for approval |
You got it, added an example. |
Moving to likely accepted, the limitations will need to be documented for things that cannot be converted |
I would like to check on this issue. If work has not been started can we assign this to me. |
done, thanks! |
Request
Add a function to the standard library similar to
json_decode
but in the reverse direction. Taking a map type and encoding to a string.Use case
In order to configure the embedded blackbox, it would be nice to be able to use the powerful features of Alloy syntax while providing the inline configuration.
The text was updated successfully, but these errors were encountered: