ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Graph PowerShell tip to convert objects to json

Автор: Merill Fernando

Загружено: 2023-07-15

Просмотров: 1258

Описание: Here's a quick Graph PowerShell trick that I learned recently. Did you know that every object has a ToJsonString method and it gives you the JSON formatted version of the object?

Now, you could always do the ConvertTo-Json method, but what that does is convert the graph PowerShell .net object model to JSON, which results in lots of these null values and it might not exactly be what you want. So for example, this has 600 odd lines compared to this, which gave me maybe about 10 or 20 lines for the actual object.

Now the other issue with this is if I were to get, for example, the manager field, you will see that it doesn't have the actual value. It has the object type name in it.

Instead we can use the ToJsonString method and it gives you a much more neater format of the object with the manager field expanded already.

I hope you found this useful.

Follow me for more tips and tricks on Graph PowerShell and Entra.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Graph PowerShell tip to convert objects to json

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]