verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

vsw output should be in proper JSON #112

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

Currently it is printing in Python object. Please use json.dumps(). It will help testing scripts to parse it.

For example: root@b781a17d2668:/# vsw list -w { 'results': [ { 'did': 'JdMNEPKUTXu3dHSdiomVoD', 'verkey': 'AcDY2ZG9Nim5xcZXB73pyXj5WMxXdrjfzZUGRjkdgPhU', 'public': True } ] }

It should be:

"did": "JdMNEPKUTXu3dHSdiomVoD"

See also: https://stackoverflow.com/questions/39491420/python-jsonexpecting-property-name-enclosed-in-double-quotes

wenjing commented 3 years ago

verified 0.0.20