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

Remove stringify from json property for spo applicationcustomizer get #6052

Open
milanholemans opened this issue May 16, 2024 · 0 comments
Open

Comments

@milanholemans
Copy link
Contributor

When you look at the command spo applicationcustomizer get, in the result we have a property called Rights which is a JSON object.
Currently, we are stringifying this JSON object when it's returned from the API. There is no need to stringify this property, let's output it as a proper JSON property.

The output should look something like:

{
  "ClientSideComponentId": "7096cded-b83d-4eab-96f0-df477ed7c0bc",
  "ClientSideComponentProperties": "",
  "CommandUIExtension": null,
  "Description": null,
  "Group": null,
  "Id": "14125658-a9bc-4ddf-9c75-1b5767c9a337",
  "ImageUrl": null,
  "Location": "ClientSideExtension.ApplicationCustomizer",
  "Name": "Some customizer",
  "RegistrationId": null,
  "RegistrationType": 0,
  "Rights": {
    "High": 0,
    "Low": 0
  },
  "Scope": "Web",
  "ScriptBlock": null,
  "ScriptSrc": null,
  "Sequence": 0,
  "Title": "Some customizer",
  "Url": null,
  "VersionOfUserCustomAction": "16.0.1.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant