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

Attempt to reduce JSON output size using the "omitempty" marshaling directive #13

Closed
mrutkows opened this issue Apr 4, 2023 · 0 comments · Fixed by #19
Closed

Attempt to reduce JSON output size using the "omitempty" marshaling directive #13

mrutkows opened this issue Apr 4, 2023 · 0 comments · Fixed by #19

Comments

@mrutkows
Copy link
Contributor

mrutkows commented Apr 4, 2023

See if we can take LicenseChoice objects produced in the license list command (JSON format):

{
      "license": {
          "id": "BSD-3-Clause",
          "name": "",
          "text": {
              "contentType": "",
              "encoding": "",
              "content": ""
          },
          "url": ""
      },
      "expression": ""
},

and reduce them to:

{
        "license": {
            "id": "BSD-3-Clause"
        }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant