Hey, I want to send a web request with a json payload using variables.
So far, the parsing works well for me, but when I want to generate a json from a variable, well, it's very messy -
And that's just an array, without even supporting edge cases and escape sequences.
I wish there was an easy method to generate a json value, or at least have more conscience methods to arrays/dictionaries (such as map, join, filter, etc) and text escaping.
I couldn't even find a way to get the length of the array or dict or see if it's empty.
Thanks!
So far, the parsing works well for me, but when I want to generate a json from a variable, well, it's very messy -
And that's just an array, without even supporting edge cases and escape sequences.
I wish there was an easy method to generate a json value, or at least have more conscience methods to arrays/dictionaries (such as map, join, filter, etc) and text escaping.
I couldn't even find a way to get the length of the array or dict or see if it's empty.
Thanks!
Last edited: