Skip to content

Commit 3f24da8

Browse files
authored
Update README.md
1 parent fbf5e85 commit 3f24da8

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,38 @@
22

33
A lightweight C utility that generates formatted console tables and tree views from JSON data structures. Built on top of the cJSON library, this tool provides clean and organized visualization of JSON data directly in the terminal.
44

5-
## Features
5+
## Example
6+
7+
Input JSON (json_example.json):
8+
```json
9+
{
10+
"configurations": [
11+
{
12+
"name": "Win32",
13+
"includePath": [
14+
"${workspaceFolder}/**"
15+
],
16+
"defines": [
17+
"_DEBUG",
18+
"UNICODE",
19+
"_UNICODE"
20+
],
21+
"compilerPath": "C:\\MinGW-w64\\bin\\gcc.exe",
22+
"cStandard": "c17",
23+
"cppStandard": "gnu++14",
24+
"intelliSenseMode": "windows-gcc-x64"
25+
}
26+
],
27+
"version": 4
28+
}
29+
630

731
- **Two Display Modes**:
832
- Table View (`json_print_table.c`): Displays JSON arrays as formatted tables
9-
1033
- ![json_print_table](https://github.com/user-attachments/assets/1449d2af-8e55-429f-a624-312a8f48cf97)
1134

1235
- Tree View (`json_print_tree.c`): Shows hierarchical JSON structure
13-
14-
- ![json_print_tree](https://github.com/user-attachments/assets/9e7d094a-b347-480e-b5cc-3f4da217b72f)
36+
- ![json_print_tree](https://github.com/user-attachments/assets/9e7d094a-b347-480e-b5cc-3f4da217b72f)
1537

1638
- **Table View Features**:
1739
- Dynamic column width adjustment

0 commit comments

Comments
 (0)