我需要在 python 中将 ndjson 对象转换为 json 我看到 pypi.org 中有一个库但我无法使用它它是 ndjson 0.3.1
{"license":"mit","count":"1551711"}
{"license":"apache-2.0","count":"455316"}
{"license":"gpl-2.0","count":"376453"}
进入json
[{
"license": "mit",
"count": "1551711"
},
{
"license": "apache-2.0",
"count": "455316"
},
{
"license": "gpl-2.0",
"count": "376453"
}]
有什么帮助吗?谢谢你