leodido / go-urn

Parser for uniform resource names as seen on RFC 8141, RFC 2141, and RFC 7643
MIT License
88 stars 11 forks source link

Added JSON marshaling support #22

Closed reinkrul closed 3 years ago

reinkrul commented 3 years ago

First of all thank you for the library.

One thing I missed (when trying to use it for https://github.com/nuts-foundation/) was proper support for JSON marshaling since it marshalled the struct fields instead of a more generic string format (e.g. urn:oid:1.2.3.4). So here it is.