Skip to content

Commit

Permalink
Removed "s from the payload formatting to make a valid json object (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
asanjabi authored Dec 5, 2021
1 parent 45b08d2 commit 668fe87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Azure.Devices.DeviceClient/ProvisioningDeviceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public DeviceRegistrationResult Register(ProvisioningRegistrationAdditionalData
string registration;
if ((data != null) && (!string.IsNullOrEmpty(data.JsonData)))
{
registration = $"{{\"registrationId\":\"{_registrationId}\",\"payload\":\"{data.JsonData}\"}}";
registration = $"{{\"registrationId\":\"{_registrationId}\",\"payload\":{data.JsonData}}}";
}
else
{
Expand Down

0 comments on commit 668fe87

Please sign in to comment.