Reverting data type from string/JSON
Hi,
I had to convert msg like geometry_msg data type to string so that I can upload it to the MYSQL database. I was wondering if there is a way that can revert String back to the original data type. Instead of me trying to use split and other stuff.
[MODIFIED]
After trying to convert to string and store it in the MYSQL database it was generating issues to revert it back, so instead of converting it to string, I had to use JSON format to save it to the database.
creating the table in with json format data type CREATE TABLE IF NOT EXISTS room_data (id INT AUTO_INCREMENT PRIMARY KEY, room_name VARCHAR(255), data JSON)"
Thanks in advance,