Closed shierei closed 7 years ago
Is there a way to find the type of a property value? I am trying to convert any UserObject's properties into a JSON document. To do that I need to find the type of a property value returned form get() to see if it is a number, string or boolean.
I found that there is a kind() member function in ponder::Property for this.
Yes: docs
Is there a way to find the type of a property value? I am trying to convert any UserObject's properties into a JSON document. To do that I need to find the type of a property value returned form get() to see if it is a number, string or boolean.