Skip to content

Wrong export format when file is JSON #6

@w0rmr1d3r

Description

@w0rmr1d3r

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions