Home>

There is a conditional JSON code for 250 lines. You need to pull out the value from the "priority" in the specific lines that I can make through the interface or the code itself

For example in code below I want to pull out the values ​​of "priority" only from Primer2 and Primer6

"Primer1": {
    "Conditions": {
      "Fields /Zen_Marsrutizacia": {
        "#In": [
          "zen_violation_3"
        ]
      }
      "TYPE": {
        "#In": [
          "Startrack"
        ]
      }
    }
    "Fields": {
    }
    "Name": "Violation -Channels 3",
    "Permissions": [
      "Chatterbox_support_ZEN"
    ],
    "Priority": 3,
    ],
    "SORT_ORDER": 1,
    ]
  }
  "Primer2": {
    "Name": "Violation -Channels 3 • Reopen",
    "Permissions": [
    ],
    "Priority": 20,
    "Profile": "Support-Zen",
    "SORT_ORDER": 1,
    "Tags": [
    ],
  }
  "Primer3": {
    }
    "Fields": {
    }
    "Name": "Violation -channels 4",
    "Permissions": [
      "Chatterbox_support_ZEN"
    ],
    "Priority": 4,
    "Profile": "Support-Zen",
    "SORT_CONFIG": [
      {
        "Sort_BY": "Updated",
        "Status": "FORWARDED"
      }
      {
        "Sort_BY": "Created",
        "Status": "NEW"
      }
      {
        "Sort_BY": "Updated",
        "Status": "Reopened"
      }
    ],
    "SORT_ORDER": 1,
  }
  "Primer4": {
    "Name": "Violation -channels 4 • Reopen",
    "Permissions": [
    ],
    "Priority": 20,
    "PROFILE": "ZEN",
  }
  "Primer5": {
      "TYPE": {
        "#In": [
          "Violation"
        ]
      }
    }
    "Fields": {
    }
    "Name": "Vitrina",
    "Permissions": [
    ],
    "Priority": 4,
    "Profile": "QWERTY-ZEN",
    "SORT_CONFIG": [
      {
        "Sort_BY": "Updated",
        "Status": "FORWARDED"
      }
      {
        "Sort_BY": "Created",
        "Status": "NEW"
      }
      {
        "Sort_BY": "Updated",
        "Status": "Reopened"
      }
    ],
    "SORT_ORDER": 1,
    "Tags": [
    ],
    "Target": "Chatterbox",
    "Themes_style": "Tree",
  }
  "Primer6": {
    "Priority": 2,
    "PROFILE": "123-ZEN",
    "SORT_CONFIG": [
      {
        "Sort_BY": "Updated",
        "Status": "FORWARDED"
      }
      {
        "Sort_BY": "Created",
        "Status": "NEW"
      }
      {
        "Sort_BY": "Updated",
        "Status": "Reopened"
      }
    ],
    "SORT_ORDER": 1,
  }
}

What is the language or anyway?

Andrew2021-09-17 12:27:11

Anyone, yes.

Delavoper2021-09-17 12:27:11

Do you have any work on this issue, or do you need to do it?

Andrew2021-09-17 12:27:11

There is no work, I'm just learning, I just need it for general development)

Delavoper2021-09-17 12:27:11

Anyone, yes, SQL is suitable?

Akina2021-09-17 12:27:11