Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help! #260

Open
Haniamin90 opened this issue Dec 25, 2022 · 1 comment
Open

Help! #260

Haniamin90 opened this issue Dec 25, 2022 · 1 comment

Comments

@Haniamin90
Copy link

Haniamin90 commented Dec 25, 2022

im having a hard time parsing this json into CSV, the output should be:

the random_number could be anything.

header: id; t; tn; tid....
values: random_number; t; tn; tid......
image

please help, thanks

{
  "random_number": {
    "t": 100800,
    "tn": 1671933005,
    "tid": "279",
    "txzone": "Asia/Tbilisi",
    "sth": "450228",
    "stv": "203986",
    "slu": "1587888024",
    "slht": "1656684260",
    "iu": "test",
    "iti": "testtest",
    "ide": "..",
    "ish": "0",
    "isv": "0",
    "it": "0",
    "ic": "23",
    "isp": "1",
    "il": "0",
    "idi": "1587888024",
    "ilu": "1587888024",
    "tod_h": 0,
    "tod_v": 0,
    "cur_online": 0,
    "tot_v": "203986",
    "tot_h": "450228",
    "last_hits": "1656684260"
  },
  "random_number": {
    "t": 3343566,
    "tn": 4444456,
    "tid": "279",
    "txzone": "Asia/Tbilisi",
    "sth": "453456",
    "stv": "664",
    "slu": "1587888024",
    "slht": "1656684260",
    "iu": "test",
    "iti": "testtest",
    "ide": "..",
    "ish": "0",
    "isv": "0",
    "it": "0",
    "ic": "23",
    "isp": "1",
    "il": "0",
    "idi": "1587888024",
    "ilu": "1587888024",
    "tod_h": 0,
    "tod_v": 0,
    "cur_online": 0,
    "tot_v": "203986",
    "tot_h": "450228",
    "last_hits": "1656684260"
  },
  ....more...
}
@Cinchoo
Copy link
Owner

Cinchoo commented Dec 25, 2022

Here is sample fiddle shows how to achieve it

https://dotnetfiddle.net/9uBlUv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants