[PATCH v2] RFC: packet lib supports json conversion