You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to convert from one form of data representation to another, it makes sense to first convert all of the data gathered by Tern into structured data output i.e. a python dictionary and then convert it into json formatted output file
First figure out what data to output
Create a function in content.py to create a python dictionary with that data
Create a function in content.py to convert the python dictionary to a json object which can be written to a json file
The text was updated successfully, but these errors were encountered:
It might make sense to dump all of the image object's attributes and do so recursively for all the objects containing it. An example implementation could be the to_dict method in Package and ImageLayer classes.
This method returns a python dictionary representation of the DockerImage
and the derived Image class.
Resolves: tern-tools#70
Signed-off-by: TileThePlane kvonderw@uci.edu
- Added print_json_report function to content.py
- Added switch for 'json' file in write_report function in report.py
- Added 'report.json' to constants.py as one of the report file names
- Added 'report.json' to gitignore
- Added '-J' option to write the report to a json file
Resolvestern-tools#70
Signed-off-by: Nisha K <nishak@vmware.com>
In order to convert from one form of data representation to another, it makes sense to first convert all of the data gathered by Tern into structured data output i.e. a python dictionary and then convert it into json formatted output file
The text was updated successfully, but these errors were encountered: