Skip to content
New issue

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

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

Already on GitHub? # to your account

Parsing Microsoft Office 365 JSON files #1

Open
vzhilov opened this issue Sep 15, 2020 · 1 comment
Open

Parsing Microsoft Office 365 JSON files #1

vzhilov opened this issue Sep 15, 2020 · 1 comment
Labels
wontfix This will not be worked on

Comments

@vzhilov
Copy link

vzhilov commented Sep 15, 2020

Здравствуйте, спасибо за Ваш труд. Простые файлы парсит как надо.

Задался задачей мониторить адреса для обновления Microsoft Office для создания списка адресов в Микротик, попытался использовать Ваш парсер, но получаю ошибку.

/system script run "JParseFunction"; global JSONLoad; global JSONLoads; global JSONUnload
:global content [/tool fetch url="https://endpoints.office.com/endpoints/Worldwide\?ClientRequestId=b10c5ed1-bad1-445f-b386-b919946339a7" as-value output=user ];
:global JSONIn ($content)
:global JParseOut [$fJParse]       

fJSkipWhitespace: Jpos=1 Char=
fJParse: Jpos=1 Char=
Err.Raise 8732. No JSON object could be fJParseed

Файлы пытаюсь получать по этой статье: https://docs.microsoft.com/ru-ru/microsoft-365/enterprise/microsoft-365-ip-web-service?view=o365-worldwide

После чего есть идея их отпарсить и преобразовать в .rsc файл или напрямую командами добавить в список адресов, который будет разрешен в firewall.

@Winand
Copy link
Owner

Winand commented Sep 15, 2020

Боюсь, что в Mikrotik есть ограничение 4Кб для переменных

@Winand Winand added the wontfix This will not be worked on label Feb 28, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants