Skip to content

Conversation

@SrijanPatwa
Copy link
Contributor

@SrijanPatwa SrijanPatwa commented Oct 2, 2025

PR Description:

Pull Request Checklist

Overview

  • I have read and understood the CONTRIBUTING.md guidelines
  • My pull request has a descriptive title that accurately reflects the changes
  • I've included only files relevant to the changes described in the PR title and description
  • I've created a new branch in my forked repository for this contribution

Code Quality

  • My code is relevant to ServiceNow developers
  • My code snippets expand meaningfully on official ServiceNow documentation (if applicable)
  • I've disclosed use of ES2021 features (if applicable)
  • I've tested my code snippets in a ServiceNow environment (where possible)

Repository Structure Compliance

  • I've placed my code snippet(s) in one of the required top-level categories:
    • Core ServiceNow APIs/
    • Server-Side Components/
    • Client-Side Components/
    • Modern Development/
    • Integration/
    • Specialized Areas/
  • I've used appropriate sub-categories within the top-level categories
  • Each code snippet has its own folder with a descriptive name

Documentation

  • I've included a README.md file for each code snippet
  • The README.md includes:
    • Description of the code snippet functionality
    • Usage instructions or examples
    • Any prerequisites or dependencies
    • (Optional) Screenshots or diagrams if helpful

Restrictions

  • My PR does not include XML exports of ServiceNow records
  • My PR does not contain sensitive information (passwords, API keys, tokens)
  • My PR does not include changes that fall outside the described scope

This script helps to extract data from the JSON and show the username and corresponding role(s)
@rohi-v rohi-v self-assigned this Oct 2, 2025
@ToosinDada
Copy link
Contributor

Hi @SrijanPatwa, Thank you for submitting!
Please add a descriptive title for this Pull Request.

This script comes handy to extract the value from a JSON object and also to tackle with the duplicate 'user_name' and shows the corresponding title related to that particular 'user'.
This script comes handy to extract the value from a JSON object and also to tackle with the duplicate 'user_name' to only show the unique ones and display the corresponding title related to that particular 'user'.
@SrijanPatwa SrijanPatwa changed the title Extract Value from JSON Extract Key and Value from JSON Object Oct 3, 2025
@SrijanPatwa
Copy link
Contributor Author

Hi @ToosinDada , Added description to the files and updated the title. Thank you

@ToosinDada ToosinDada self-assigned this Oct 3, 2025
@ToosinDada
Copy link
Contributor

@SrijanPatwa Great. You also need to complete the checklist.

@SrijanPatwa
Copy link
Contributor Author

@SrijanPatwa Great. You also need to complete the checklist.

Done @ToosinDada , Thanks

@ToosinDada ToosinDada merged commit e946ac1 into ServiceNowDevProgram:main Oct 3, 2025
1 check passed
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