php - straight MySQL results vs converted to JSON? -


is there benefit converting results mysql query json instead of manipulating results are?

i adding features web frontend mysql database written in php , has not been touched in @ least 5 years. want make bit more modern such adding ajax functionality improve user experience. i'm wondering if there things easier implement converting results json or if there aspects of improved security i'm not seeing.

the advantage json it's understood javascript since raw javascript. if have working code converts other form form understood javascript functions, don't touch it, unless you're experiencing sort of problem existing code.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -