$data = array(
'validation' => '1',
'username' => 'peter'),
'password' => 'bigpass'
);
I have a JSON array like this. On the receiving end I want to strip out username and then sent it on in JSON format again - eg: only containing validation and passwd.
Is there a way to strip out a JSON element without decoding it? Or do I have to decode it and convert it into an array, then remove the required element and then re-encode it again?
thx