[PATCH] RFC: packet lib supports json conversion