أمثلة
A compact feature-flag record
المدخلات
{"compact":true,"schema":0}Expected answer
Hexadecimal bytes1b 00 00 00 08 63 6f 6d 70 61 63 74 00 01 10 73 63 68 65 6d 61 00 00 00 00 00 00A UTF-8 café label
المدخلات
{"name":"café","city":"Paris"}Expected answer
Hexadecimal bytes25 00 00 00 02 6e 61 6d 65 00 06 00 00 00 63 61 66 c3 a9 00 02 63 69 74 79 00 06 00 00 00 50 61 72 69 73 00 00A negative sensor reading
المدخلات
{"station":"demo","celsius":-12}Expected answer
Hexadecimal bytes24 00 00 00 02 73 74 61 74 69 6f 6e 00 05 00 00 00 64 65 6d 6f 00 10 63 65 6c 73 69 75 73 00 f4 ff ff ff 00A decimal checkout amount
المدخلات
{"amount":12.5,"currency":"EUR"}Expected answer
Hexadecimal bytes27 00 00 00 01 61 6d 6f 75 6e 74 00 00 00 00 00 00 00 29 40 02 63 75 72 72 65 6e 63 79 00 04 00 00 00 45 55 52 00 00A missing avatar
المدخلات
{"user":"demo","avatar":null}Expected answer
Hexadecimal bytes1c 00 00 00 02 75 73 65 72 00 05 00 00 00 64 65 6d 6f 00 0a 61 76 61 74 61 72 00 00A nested configuration
المدخلات
{"server":{"port":443,"tls":true}}Expected answer
Hexadecimal bytes22 00 00 00 03 73 65 72 76 65 72 00 15 00 00 00 10 70 6f 72 74 00 bb 01 00 00 08 74 6c 73 00 01 00 00basic
المدخلات
{"hello":"world"}Expected answer
Hexadecimal bytes16 00 00 00 02 68 65 6c 6c 6f 00 06 00 00 00 77 6f 72 6c 64 00 00