0
  steps:
  - name: Read package.json
    id: package
    uses: juliangruber/read-file-action@v1
    with:
      path: ./package.json
  - name: Echo package.json
    run: echo "${{ steps.package.outputs.content }}"

returns the JSON string. However I'm not sure how to retrieve the values of properties in the below array

  {
     [      
          {
              "Accountname": "Account1",
                "contacts": [
                    "contact1","contact2"
                ]
          },
         {
              "Accountname": "Account2",
                "contacts": [
                    "contact3","contact4"
                ]
          }
        
     ]
    }
cartman
  • 203
  • 3
  • 14
  • 2
    Does this answer your question? [Parsing JSON with Unix tools](https://stackoverflow.com/questions/1955505/parsing-json-with-unix-tools). Also, https://www.systutorials.com/docs/linux/man/1-jq/ – frippe Oct 20 '21 at 17:28

0 Answers0