When you give DataTypeToJson a struct containing a UChar ..... not unreasonably it converts the array part to [ 24, 156, 224, ....]

However it would be handy if you could set something to tell it to output it as a string so that we can pass "strings" > 64k in a struct to json without the argument_size faff

Unless I have missed something ?