serialize replaced with json_encode
version updated