proper json encoding using php...
..
..