I am a relatively newcomer to the world of application development in Symfony. I am presently working in Symfony 2.8 and I often find a debate amongst my colleagues about the use of generic PHP functions like json_decode or json_encode vs Symfony's own JsonDecode and JsonEncode. I am often told that instead of using json_encode or json_decode, we must rather use the encoder classes provided by Symfony namely the JsonEncode and JsonDecode to achieve the same. What I am curious to know,
Is it really that important to discard the use of such generic functions in favour of the Symfony encoder classes ?
Does it help in performance in any way ?
Is such recommendations only a part of better coding strategy or are there any downsides to using, say json_encode in code ?
I really want to know what's behind this hype and any help will be welcome.
Thanks in advance !