The JSON output should be in a string format. JSON strings will help to natively print tables and other output formats. The passpredict-api will use byte output optimized for web traffic.
The standard json module outputs as string while the orjson module outputs as bytes. Since using the orjson module would add an unnecessary dependency, stick to using the standard library json here and only use orjson in the passpredict-api.
The JSON output should be in a string format. JSON strings will help to natively print tables and other output formats. The passpredict-api will use byte output optimized for web traffic.
The standard
json
module outputs as string while theorjson
module outputs as bytes. Since using theorjson
module would add an unnecessary dependency, stick to using the standard libraryjson
here and only useorjson
in the passpredict-api.