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

Wrong export format when file is JSON #6

Open
w0rmr1d3r opened this issue Oct 14, 2022 · 0 comments
Open

Wrong export format when file is JSON #6

w0rmr1d3r opened this issue Oct 14, 2022 · 0 comments

Comments

@w0rmr1d3r
Copy link

Hello @9rnt ,

I've been trying this cool tool today. Tried the --export option and I have some questions.

It says it will export it to a file, so I ran poro like this:

python poro.py --export RESULT_PORO.json

But the output file looks like the following. You will see, it's not a well formed JSON:

{
  'Public buckets': [
    {
      'Name': 'my-example-of-public-bucket',
      'Rational': 'Public Policy'
    }
  ],
  'Public API': [],
  'Public EC2': [],
  'Public ELB': [],
  'Public RDS': [],
  'Public Redshift clusters': []
}

Is this expected?

If I wanted a JSON, it should have double quotes instead:

{
  "Public buckets": [
    {
      "Name": "my-example-of-public-bucket",
      "Rational": "Public Policy"
    }
  ],
  "Public API": [],
  "Public EC2": [],
  "Public ELB": [],
  "Public RDS": [],
  "Public Redshift clusters": []
}

Thank you

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

1 participant