File size: 1,407 Bytes
30b25a5
a9f051b
 
 
 
30b25a5
 
 
5b2c0c6
a9f051b
 
 
30b25a5
14eb8bf
30b25a5
 
a9f051b
30b25a5
a9f051b
30b25a5
a9f051b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: Field Correlation Analyzer
emoji: πŸ€–
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 8501
tags:
- streamlit
- json
- analysis
- field-correlation
pinned: false
short_description: Analyze JSON files and detect important fields
---

# Field Correlation Analyzer

Upload a JSON file to analyze important fields and generate regex patterns for field extraction.

## Features

- πŸ” **Automatic Field Detection**: Detects summary/aggregate fields automatically
- πŸ“Š **Hierarchy Analysis**: Classifies data structure by hierarchy levels
- 🎯 **Smart Recommendations**: Recommends important fields for validation
- πŸ“ **Regex Generation**: Generates regex patterns for field extraction
- πŸ“₯ **Export Results**: Download analysis results as JSON

## How to Use

1. Upload a JSON file with structured data
2. Set the target field you want to analyze (e.g., `rotation_enabled`)
3. Click "Analyze" to process the data
4. Review the structure analysis and field recommendations
5. Select fields and generate regex patterns
6. Download the results as JSON

## Example JSON Structure

```json
{
  "results": {
    "summary": {
      "total_keys": 13,
      "rotated_keys": 6,
      "rotation_percentage": 46
    },
    "kms_keys": {
      "object": [
        {
          "key_id": "12345",
          "rotation_enabled": true,
          "key_state": "Enabled"
        }
      ]
    }
  }
}
```