If the target variable (on rosbridge side) is a non-numeric variable, always use to_str()
when creating the json string. This won't harm if we use a string to store inside
the string but it will enable storing integer values as strings.
Whether it will be treated as string or numeric value on the rosbridge side / json interpreter
is only determined by the fact, whether it has surrounding quotes or not.
If the target variable (on rosbridge side) is a non-numeric variable, always use
to_str()
when creating the json string. This won't harm if we use a string to store inside the string but it will enable storing integer values as strings.Whether it will be treated as string or numeric value on the rosbridge side / json interpreter is only determined by the fact, whether it has surrounding quotes or not.
Fixes #1