forked from TrueCloudLab/frostfs-node
a0abf10c8e
The code is taken from viper as `cast` package that we use doesn't have needed converter. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
60 lines
913 B
JSON
60 lines
913 B
JSON
{
|
|
"value": "some value",
|
|
|
|
"section": {
|
|
"any": "thing",
|
|
"sub": {
|
|
"sub": {
|
|
"sub1": {
|
|
"key": "val1"
|
|
},
|
|
"sub2": {
|
|
"key": "val2"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"string_slice": {
|
|
"empty": [],
|
|
"filled": [
|
|
"string1",
|
|
"string2"
|
|
],
|
|
"incorrect": null
|
|
},
|
|
|
|
"string": {
|
|
"correct": "some string",
|
|
"incorrect": []
|
|
},
|
|
|
|
"duration": {
|
|
"correct": "15m",
|
|
"incorrect": "some string"
|
|
},
|
|
|
|
"number": {
|
|
"int_pos": 1,
|
|
"int_neg": -1,
|
|
"fract_pos": 2.5,
|
|
"fract_neg": -2.5,
|
|
"incorrect": "some string"
|
|
},
|
|
|
|
"bool": {
|
|
"correct": true,
|
|
"correct_string": "true",
|
|
"incorrect": "not true"
|
|
},
|
|
|
|
"sizes": {
|
|
"size_kb": "1 kb",
|
|
"size_kb_no_space": "2kb",
|
|
"size_mb": "12m",
|
|
"size_gb": "4g",
|
|
"size_tb": "5 TB",
|
|
"size_bytes": "2048b",
|
|
"size_bytes_no_suffix": 123456
|
|
}
|
|
}
|