Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Jobs_UpdateMsg to generate valid JSON #109

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

aggarg
Copy link
Member

@aggarg aggarg commented Jul 31, 2024

Description

Jobs_UpdateMsg was putting double quotes around the statusDetails value resulting in the following invalid JSON:

{
  "status": "QUEUED",
  "statusDetails": "{
    "key": "value"
  }"
}

This change removes the unnecessary double quotes to generate a valid JSON:

{
  "status": "QUEUED",
  "statusDetails": {
    "key": "value"
  }
}

This was reported here - #107

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Jobs_UpdateMsg was putting double quotes around the `statusDetails`
value resulting in the following invalid JSON:
```
{
  "status": "QUEUED",
  "statusDetails": "{
    "key": "value"
  }"
}
```

This change removes the unnecessary double quotes to generate a valid
JSON:
```
{
  "status": "QUEUED",
  "statusDetails": {
    "key": "value"
  }
}
```

This was reported here - aws#107

Signed-off-by: Gaurav Aggarwal <[email protected]>
@aggarg aggarg mentioned this pull request Jul 31, 2024
@AniruddhaKanhere AniruddhaKanhere merged commit 02e343e into aws:main Jul 31, 2024
10 checks passed
@aggarg aggarg deleted the issue_107 branch August 1, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants