I've been working on an application where we've started adding JSON fields to our database, and I've seen a developer writing this:
$tagList = $row->getString("tags") ? json_decode($row->getString("tags")) : [];
An obvious code smell that would be greatly improved by some json functionality in the database layer.
I've been working on an application where we've started adding JSON fields to our database, and I've seen a developer writing this:
An obvious code smell that would be greatly improved by some json functionality in the database layer.