Can't save json data in mysql

when i add to scene textGeometry, and try save it, get this message:

string(226) “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stdClass”:4:{s:5:“x_min”;i:79;s:5:“x_max”;d:223.46875;s:2:“ha”;i:306;s:1:“o”;s:4’ at line 1"

if don’t add textGeometry everything work fine.

How to fix this?

hi, did you try mysql_escape_string ?

i fixed those problem just save it into file, but have another issue:

THREE.ObjectLoader: Unsupported geometry type “TextGeometry”
THREE.ObjectLoader: Undefined geometry C455146F-3545-4581-80F0-EF303E92423A

TextGeometry is not supported by ObjectLoader, see:

Serializing/deserializing fonts is the problem in context of this geometry type.