Convert object to string
-
I have an object with a property
object1.property1
I want to convert it to a string.
How can we convert the data from an object into a string and store that string in a variable?
I tried String() but this is not supported, and JSON.stringify() didn't work either.
-
If you want to convert the entire object to a string you can use
trace(object1)
Other than that you need to give a bit more context of what you want to do.
-
@d-healey perfect, thank you. Is that somewhere in the documentation? I didn’t see it.