Skip to content

Commit

Permalink
Merge pull request #480 from FelixTing/issue-479
Browse files Browse the repository at this point in the history
fix: support for any JSON data type in device command value
  • Loading branch information
FelixTing authored Aug 31, 2023
2 parents 3bd72ea + 34c657e commit b62e37a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/c/reqdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ extern const char *edgex_reqdata_get (const edgex_reqdata_t *data, const char *n
const char *result = NULL;
if (data->json)
{
result = json_object_get_string (data->json, name);
JSON_Value *value = json_object_get_value(data->json, name);
if (value) {
result = json_serialize_to_string(value);
}
}
else
{
Expand Down

0 comments on commit b62e37a

Please sign in to comment.