fossology/Nirjas

Response dictionary can be accumulated to a Single Output Class

Kaushl2208 opened this issue · 3 comments

Currently the output/response is being provided in the form of separate dictionaries. A dedicated class can be written to make it more modular and efficient.

Ref: Dict_perma

I would like to rephrase the requirement. We have dedicated classes in nirjas/output but even while calling nirjas as library, it returns a JSON which needs to be parsed back into Python types.
Instead, if the translation of object to JSON can be done only for CLI calls and not for library/function calls, it will be great.

@Kaushl2208 , with #47, we now have the result as Python dictionary. Do we still need a dedicated class for it or can we close the issue?

@GMishx , This #47 seems like good implementation. Let's close the issue!!