Hi, I’d like to format appropriately Json array in order to iterate through the entries. I’m using Mariadb, Node/Express and Handlebars. What I’ve manege to get from the database is
'["textA","textB","textC"]'
But this is a string and I don’t have an idea how to access individual elements (I have an access to the entire array but not to individual items). Any suggestions are welcomed.
If you are frequently dealing with JSON, then why not use Mongo? It’s somewhat odd that you have a need for dealing with complex JSON and your primary db is MariaDB. If you have trouble mapping data to your tables, you can use ORMs too.
Having no prior experience with rel.databases I’ve installed Xampp that comes with Maria, that seems is more preferable RDBMS by the web hosting providers.