Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is no space after the colon after the json tag prefix, a parsing error occurs. #253

Open
warpkwd opened this issue Dec 26, 2024 · 1 comment

Comments

@warpkwd
Copy link
Contributor

warpkwd commented Dec 26, 2024

sbom file is:

"creationInfo": {
    "created": "2024-12-25T12:00:00Z",
    "creators": [
      "Tool: SPDXExampleTool-1.0",
      "Organization: ExampleOrg",
      "Person:John Doe (john.doe@example.com)"   <- no space after colon
    ]

tools-golang example is:

$ cd tools-golang/examples/10-jsonloader
$ go run example_json_loader.go sample.json
Error while parsing sample.json: failed to parse Creator 'Person:John Doe (john.doe@example.com)'

sample.json

@viveksahu26
Copy link

Hey, I would love to take this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants