You can’t store more than 255 characters in an entity’s state property.
However, you can store more than 255 characters in an entity’s attribute. Use the json_attributes option to put the received data into one or more attributes. Here’s an example of how to do that: