TheHive-Project / TheHive-Project/Cortex-Analyzers

Dynamically show template, nested json []

Open
#744 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Hi,

How to dynamically show nested json into table?

From the example json I want to get two_branch/entry loop with one_branch as top lvl distinction?

Example json:

{
  task_info: {
    report: [
      one_branch: {
        "foo":"bar"
      }
      two_branch: {
        entry: [
          {"id":"1",
           "sample":"yes"},
          {"id":"2",
           "sample":"aha"}
        ]
      }
    ]
    report: [
      one_branch: {
        "bar":"foo"
      }
      two_branch: {
        entry: [
          {"id":"1",
           "sample":"bar"},
          {"id":"2",
           "sample":"foo"}
        ]
      }
    ]
  }
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. First inspect the repository’s template-rendering and JSON-handling entry points, then clarify the intended table structure for repeated report branches. Done should mean the requested nested branches render dynamically with the intended top-level distinction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.