<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Класс для работы с JSON]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14438&amp;type=atom" />
	<updated>2024-12-18T21:27:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14438</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161811#p161811" />
			<content type="html"><![CDATA[<p><strong>inseption86</strong>, такие вопросы на раз-два решаются с помощью чат-жпт.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2024-12-18T21:27:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161811#p161811</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161809#p161809" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
JSON.Parse(obj[1][23]).series_number
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-12-18T15:56:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161809#p161809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161808#p161808" />
			<content type="html"><![CDATA[<p>В смысле, имели в виду «Опечатка.», или забыли правила форума?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-12-18T08:30:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161808#p161808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161807#p161807" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Опечатка.</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-12-18T07:50:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161807#p161807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161806#p161806" />
			<content type="html"><![CDATA[<p>Точно. Хотя нет, кавычка у вас пропала.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-12-17T20:16:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161806#p161806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161805#p161805" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><br /><br /><p>при </p><div class="codebox"><pre><code>
passPosrt := obj[1][23]
MsgBox % Clipboard := passPosrt 
</code></pre></div><p>выводит&nbsp; - </p><div class="codebox"><pre><code>{&quot;series_number&quot;: &quot;FA5243454&quot;}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-12-17T20:01:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161805#p161805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161804#p161804" />
			<content type="html"><![CDATA[<p>Там такого элемента нет.<br /></p><div class="codebox"><pre><code>&quot;{\&quot;series_number\&quot;: \&quot;FA5243454\&quot;}&quot;</code></pre></div><p>Это не объект, как вы наверно думаете, это буквальная строка. Однако, это строка тоже в формате JSON, так что можно её отдельно превратить в объект.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-12-17T19:59:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161804#p161804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161803#p161803" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите, пож-та как получить элемент &quot;series_number&quot; ?</p><div class="codebox"><pre><code>
[
[
    &quot;[[\&quot;Сведения о , 1]]&quot;,
    &quot;ps-ok&quot;,
    &quot;xx-xx-3x&quot;,
    &quot;2024-12-17&quot;,
    &quot;[xxxxx]&quot;,
    &quot;{\&quot;area_name\&quot;: null}&quot;,
    null,
    null,
    &quot;UZ&quot;,
    &quot;xxxx&quot;,
    &quot;xx&quot;,
    &quot;xx&quot;,
    &quot;xxx&quot;,
    &quot;xxx&quot;,
    &quot;xx&quot;,
    &quot;xxx&quot;,
    &quot;xxx&quot;,
    &quot;xx&quot;,
    2024,
    null,
    &quot;sxxxxx&quot;,
    null,
    &quot;{\&quot;series_number\&quot;: \&quot;FA5243454\&quot;}&quot;,
    &quot;issued-ok&quot;
]
]
</code></pre></div><p>так не выходит - <br /></p><div class="codebox"><pre><code>
passPosrt := obj[1][23]
MsgBox % obj.series_number[passPosrt]
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-12-17T18:09:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161803#p161803</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160247#p160247" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-02-06T05:01:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160247#p160247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160238#p160238" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>obj := JSON.Parse(var_text)
MsgBox % obj.ExamCertificates[obj.TestHistory.1.UUID].1.ID
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-05T20:08:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160238#p160238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160234#p160234" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><br /><div class="codebox"><pre><code>
{
  &quot;TestHistory&quot;: [
    {
      &quot;UUID&quot;: &quot;7d114b1e-aad9-4da4-b630-d9ef2e2dd056&quot;
    }
  ],
  &quot;ExamCertificates&quot;: {
    &quot;7d114b1e-aad9-4da4-b630-d9ef2e2dd056&quot;: [
      {
        &quot;ID&quot;: 3408889
      }
    ]
  }
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-02-05T15:05:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160234#p160234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160231#p160231" />
			<content type="html"><![CDATA[<p>Не стоит приводить текстовые данные, используя картинки.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-05T12:08:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160231#p160231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160227#p160227" />
			<content type="html"><![CDATA[<p>Добрый день, подскажите как можно вытащить этот элемент?</p><br /><div class="codebox"><pre><code>
FileRead, var_text, % A_Desktop &quot;\11.txt&quot;
obj := JSON.Parse(var_text)

UUID := obj.TestHistory[1].UUID

MsgBox % obj.ExamCertificates.UUID[1].ID
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-02-05T10:56:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160227#p160227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158155#p158155" />
			<content type="html"><![CDATA[<p>А в чём вопрос-то?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-05-12T11:13:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158155#p158155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Класс для работы с JSON]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158149#p158149" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>спасибо! А если json1 будет постоянен, а json2,3,4,5,6.... будет иметь такую же структуру, но с разными данными?</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2023-05-12T06:10:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158149#p158149</id>
		</entry>
</feed>
