One liner for simple fetch as associative array

A useful method for creating APIs when you need to use json_encode on database results, this would facilitate the process. One could simply call `json_encode($result->fetchAssoc())` instead of building the array by hand.