Python Forum
How to exctract this json to csv
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to exctract this json to csv
#6
Thank you. I didn't test it yet but it should work.
Another question :)
I don't want to include 'all-services' in the code and maybe there will be more arrays than one, so for example:

{
"all-services": [
      {..},
      {..},
      {..}
      ],
 "other-service" : [
      {..},
      {..},
      {..}
      ]
}
How can I iterate all arrays? The name of arrays are not important, because those names will be already in the "SysteDUnit" field.
Second question:
I want to change the order of header. For example, instead "Message","Priority".. like in json, I want to have "Timestamp","SystemDUnit","Priority","Message".
How can I do it?
Reply


Messages In This Thread
How to exctract this json to csv - by kahlenberg - May-03-2020, 05:25 PM
RE: How to exctract this json to csv - by ndc85430 - May-03-2020, 05:44 PM
RE: How to exctract this json to csv - by buran - May-03-2020, 05:52 PM
RE: How to exctract this json to csv - by buran - May-04-2020, 05:22 AM
RE: How to exctract this json to csv - by kahlenberg - May-04-2020, 09:34 AM
RE: How to exctract this json to csv - by buran - May-04-2020, 09:41 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020