public subroutine decode_set_value(bytes, expected_kind, value, ok, code, message)
Decode the {"args":{"key":"...","value":}} request shape used
by SET_. Caller passes =expected_kind= obtained from
=schema_lookup= so this routine knows which JSON field to pull.
Returns =ok=.false.= with =code="type_mismatch"= when the value
is missing or the wrong JSON type.
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
integer(kind=int8),
|
intent(in) |
|
|
:: |
bytes(:) |
|
|
integer,
|
intent(in) |
|
|
:: |
expected_kind |
|
|
type(wire_value_t),
|
intent(out) |
|
|
:: |
value |
|
|
logical,
|
intent(out) |
|
|
:: |
ok |
|
|
character(len=*),
|
intent(out) |
|
|
:: |
code |
|
|
character(len=*),
|
intent(out) |
|
|
:: |
message |
|