Custom variables type always string ?
![dmajard](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar23.png)
dmajard
Registered Posts: 6 ✭✭✭✭
Hi,
I have defined some global variables in a flow, and these are integers, lists and stings. Yet when I use dataiku.get_custom_variables() in python everything is a string.
Doesn't JSON support these types?
Cheers,
Dany
I have defined some global variables in a flow, and these are integers, lists and stings. Yet when I use dataiku.get_custom_variables() in python everything is a string.
Doesn't JSON support these types?
Cheers,
Dany
Tagged:
Best Answer
-
Hi,
To do what you want, you can use the argument "typed" as shown below:
dataiku.get_custom_variables(typed = True)Hope it helps,
Alex
Answers
-
Merci !
That is so useful. Please add this detail to the documentation.
Cheers,
Dany -
Thanks for the feedback, we will add this to our documentation backlog.