Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
telemetry: fix empty JSON dictionaries
[ upstream commit 324ec1df541711ca829f4d99b7e2d32ffe38d3ca ] Fix to allow telemetry to handle empty dictionaries correctly. This patch resolves an issue where empty dictionaries are reported by telemetry as '[]' rather than '{}'. Initializing the output buffer based on the container type resolves the issue. Fixes: c933bb5 ("telemetry: support array values in data object") Signed-off-by: Jonathan Erb <[email protected]> Acked-by: Ciara Power <[email protected]>
- Loading branch information