Text to hexstring
It may be useful for users to have strings converted to hexstring type instead of the hexidecimal value. Defining the following custom option:
option EXAMPLE.example code 13 = text;
Becomes:
"option-def": [
{
"space": "EXAMPLE",
"name": "example",
"code": 13,
"type": "string"
},
],
But when the option is instantiated, keama produces:
{
"space": "EXAMPLE",
"name": "example",
"code": 13,
"csv-format": false,
// "original-data": "example text",
"data": "6578616D706C652074657874"
},
Instead of:
{
"space": "EXAMPLE",
"name": "example",
"code": 13,
"csv-format": false,
"data": "'example text'"
},