I use both result() and result_array().
Usually i like to get my result as array thats why i use result_array() mostly..
But i want
in my experince the problem using result() and result_array() in my JSON if using result() there no problem its works but if using result_array() i got error "Trying to get property of non-object" so im not search into deep the problem so i just using result() if using JSON and using result_array() if not using JSON