<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Javascript_JPath</id>
	<title>Javascript JPath - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Javascript_JPath"/>
	<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_JPath&amp;action=history"/>
	<updated>2026-11-25T17:16:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_JPath&amp;diff=8463&amp;oldid=prev</id>
		<title>Marian at 10:39, 9 September 2024</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_JPath&amp;diff=8463&amp;oldid=prev"/>
		<updated>2024-09-09T10:39:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:39, 9 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Return:&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Return:&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Path item string (unescaped, may be empty), &amp;#039;undefined&amp;#039; if index is out of range. Index may be out of range for empty or invalid paths.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Path item string (unescaped, may be empty), &amp;#039;undefined&amp;#039; if index is out of range. Index may be out of range for empty or invalid paths.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Javascript]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Marian</name></author>
	</entry>
	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_JPath&amp;diff=8299&amp;oldid=prev</id>
		<title>Marian: Created page with &quot;Javascript JPath as specified in RFC 6901.  Notes: * Path items separator is slash (/) character * Path may not start with slash (/) character * Escape char is tilde (~). The ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_JPath&amp;diff=8299&amp;oldid=prev"/>
		<updated>2021-10-27T10:50:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Javascript JPath as specified in RFC 6901.  Notes: * Path items separator is slash (/) character * Path may not start with slash (/) character * Escape char is tilde (~). The ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Javascript JPath as specified in RFC 6901.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* Path items separator is slash (/) character&lt;br /&gt;
* Path may not start with slash (/) character&lt;br /&gt;
* Escape char is tilde (~). The following characters MUST be escaped in path item names:&lt;br /&gt;
** Tilde (~): ~0&lt;br /&gt;
** Slash (/): ~1&lt;br /&gt;
&lt;br /&gt;
== Constructor ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;new JPath(str)&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Create a new JPath object.&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;str&amp;#039;&amp;#039;&amp;#039;: String with JSON path&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;valid()&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Check if path is valid.&amp;lt;br&amp;gt;&lt;br /&gt;
Return:&amp;lt;br&amp;gt;&lt;br /&gt;
True if path is valid, false otherwise&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;getItems()&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Retrieve path item(s).&amp;lt;br&amp;gt;&lt;br /&gt;
Return:&amp;lt;br&amp;gt;&lt;br /&gt;
Array of strings. Each item contains its unescaped value. Array may be empty for empty or invalid paths&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;count()&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Retrieve the number of items in path.&amp;lt;br&amp;gt;&lt;br /&gt;
Return:&amp;lt;br&amp;gt;&lt;br /&gt;
Number of items in path, 0 if path is empty or invalid&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;at(idx)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Retrieve the path item at given index.&amp;lt;br&amp;gt;&lt;br /&gt;
Parameters:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;idx&amp;#039;&amp;#039;&amp;#039;: 0 based index to retrieve&amp;lt;br&amp;gt;&lt;br /&gt;
Return:&amp;lt;br&amp;gt;&lt;br /&gt;
Path item string (unescaped, may be empty), &amp;#039;undefined&amp;#039; if index is out of range. Index may be out of range for empty or invalid paths.&lt;/div&gt;</summary>
		<author><name>Marian</name></author>
	</entry>
</feed>