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() to strings module #237

Closed
vdrg opened this issue Nov 28, 2023 · 2 comments
Closed

Add .json() to strings module #237

vdrg opened this issue Nov 28, 2023 · 2 comments

Comments

@vdrg
Copy link
Contributor

vdrg commented Nov 28, 2023

We could add a .json or .toJson function to the strings module, which is simpler than having to do json.create(val) (these functions should also return a JsonResult).

@gnkz
Copy link
Contributor

gnkz commented Nov 29, 2023

what about parseJson? This would be in line with the other methods that parse string values to other types

@vdrg
Copy link
Contributor Author

vdrg commented Nov 29, 2023

Works too

gnkz added a commit that referenced this issue Nov 29, 2023
gnkz added a commit that referenced this issue Nov 29, 2023
* feat: string to json

Solves #237

* docs: update strings references
@gnkz gnkz closed this as completed Nov 29, 2023
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