Hello,
I am building a component, and I want to know of any warnings or cautionary measures I should take dealing with saving, retrieving a string formatted as per javascript JSON.stringify()
The user enters, selects, etc information. I reformat some of this information within the form, a non-visible field; a field that is part of the component's model. In other words, the value of this field, should be a JSON string.
Are there any dangers to saving data in this format? The string has many quotes, and or double quotes. What could happen in the user tampers with the string, and adds an extra double quotes, with some SQL code intended to break, hack, etc?
Is there a safe way to save the JSON string? or are JSON strings safe to store in database given Joomla component development standards ( I am following all standards, by the book as it were... actually literally... :)
Thank you for any feedback