Look at the JSON class, you have done the same and I couldn't find this method in the Text class.