remove excess json_encode