I've looked around for a Javascript/jQuery function which emulates PHP's json_encode, but all the ones I find (listed bellow) don't work.
To check if it wasn't my array wasn't faulty I used phpjs var_dump with expected results.
Can anyone point me in the right direction?
[[]].