Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Fix display of JSON-format string message bodies #31

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

keriehm
Copy link
Contributor

@keriehm keriehm commented Nov 16, 2017

Checklist

Reference/Link to the issue solved with this PR (if any)

Description of the problem

Message bodies that could be parsed as UTF-8 encoded JSON strings were being shown in the output as an empty pair of braces {} because the actual global JSON object itself was being printed, not the body of the message.

Description of the solution

Correct the call to JSON.stringify() that was probably only missing due to a typo.

UTF-8 encoded strings that could be parsed as JSON were being shown in the output as an empty pair of braces {} because the actual global JSON object itself was being printed, not the body of the message.
Copy link
Contributor

@pierreca pierreca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@az-iot-builder-01 az-iot-builder-01 merged commit 894aa37 into Azure:master Nov 16, 2017
@keriehm keriehm deleted the patch-1 branch November 16, 2017 20:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants