Files
Pf2eDataScrapper/Documentation/Pf2e.Scrapper/AonprdBuilderGlobals.JsonToDictionary(JObject,string).md
2025-10-04 22:52:22 +04:00

27 lines
2.0 KiB
Markdown

#### [Pf2e\.Scrapper](index.md 'index')
### [Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers](Pf2e.Scrapper.Importers.Implementations.Aonprd.Helpers.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers').[AonprdBuilderGlobals](AonprdBuilderGlobals.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers\.AonprdBuilderGlobals')
## AonprdBuilderGlobals\.JsonToDictionary\(JObject, string\) Method
Преобразовать JSON\-объект в словарь\.
```csharp
public static System.Collections.Generic.Dictionary<string,string> JsonToDictionary(Newtonsoft.Json.Linq.JObject json, string tokenPath);
```
#### Parameters
<a name='Pf2e.Scrapper.Importers.Implementations.Aonprd.Helpers.AonprdBuilderGlobals.JsonToDictionary(Newtonsoft.Json.Linq.JObject,string).json'></a>
`json` [Newtonsoft\.Json\.Linq\.JObject](https://learn.microsoft.com/en-us/dotnet/api/newtonsoft.json.linq.jobject 'Newtonsoft\.Json\.Linq\.JObject')
Исходный JSON\-объект\.
<a name='Pf2e.Scrapper.Importers.Implementations.Aonprd.Helpers.AonprdBuilderGlobals.JsonToDictionary(Newtonsoft.Json.Linq.JObject,string).tokenPath'></a>
`tokenPath` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
Путь к токену в JSON\.
#### Returns
[System\.Collections\.Generic\.Dictionary&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2 'System\.Collections\.Generic\.Dictionary\`2')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[,](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2 'System\.Collections\.Generic\.Dictionary\`2')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2 'System\.Collections\.Generic\.Dictionary\`2')
Результирующий словарь\.