clutter 3.2.1-x86-mingw32 → 3.2.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +1 -1
  3. data/dependency-check/Rakefile +1 -0
  4. data/vendor/local/bin/json-glib-format.exe +0 -0
  5. data/vendor/local/bin/json-glib-validate.exe +0 -0
  6. data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
  7. data/vendor/local/bin/libcogl-20.dll +0 -0
  8. data/vendor/local/bin/libcogl-pango-20.dll +0 -0
  9. data/vendor/local/bin/libcogl-path-20.dll +0 -0
  10. data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
  11. data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +1 -61
  12. data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +212 -182
  13. data/vendor/local/include/cogl/cogl-path/cogl-path-enum-types.h +1 -3
  14. data/vendor/local/include/cogl/cogl/cogl-enum-types.h +13 -41
  15. data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +5 -10
  16. data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +4 -0
  17. data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +2 -0
  18. data/vendor/local/include/json-glib-1.0/json-glib/json-version-macros.h +16 -0
  19. data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +4 -4
  20. data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
  21. data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
  22. data/vendor/local/lib/libclutter-1.0.la +2 -2
  23. data/vendor/local/lib/libcogl-pango.dll.a +0 -0
  24. data/vendor/local/lib/libcogl-pango.la +2 -2
  25. data/vendor/local/lib/libcogl-path.dll.a +0 -0
  26. data/vendor/local/lib/libcogl-path.la +2 -2
  27. data/vendor/local/lib/libcogl.dll.a +0 -0
  28. data/vendor/local/lib/libcogl.la +2 -2
  29. data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
  30. data/vendor/local/lib/pkgconfig/cally-1.0.pc +1 -1
  31. data/vendor/local/lib/pkgconfig/clutter-1.0.pc +1 -1
  32. data/vendor/local/lib/pkgconfig/clutter-cogl-1.0.pc +1 -1
  33. data/vendor/local/lib/pkgconfig/clutter-gdk-1.0.pc +1 -1
  34. data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +1 -1
  35. data/vendor/local/lib/pkgconfig/cogl-1.0.pc +1 -1
  36. data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +1 -1
  37. data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +1 -1
  38. data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +1 -1
  39. data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +1 -1
  40. data/vendor/local/lib/pkgconfig/cogl-path-1.0.pc +1 -1
  41. data/vendor/local/lib/pkgconfig/cogl-path-2.0-experimental.pc +1 -1
  42. data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +5 -6
  43. data/vendor/local/libexec/installed-tests/json-glib-1.0/array.exe +0 -0
  44. data/vendor/local/libexec/installed-tests/json-glib-1.0/boxed.exe +0 -0
  45. data/vendor/local/libexec/installed-tests/json-glib-1.0/builder.exe +0 -0
  46. data/vendor/local/libexec/installed-tests/json-glib-1.0/generator.exe +0 -0
  47. data/vendor/local/libexec/installed-tests/json-glib-1.0/gvariant.exe +0 -0
  48. data/vendor/local/libexec/installed-tests/json-glib-1.0/invalid.exe +0 -0
  49. data/vendor/local/libexec/installed-tests/json-glib-1.0/node.exe +0 -0
  50. data/vendor/local/libexec/installed-tests/json-glib-1.0/object.exe +0 -0
  51. data/vendor/local/libexec/installed-tests/json-glib-1.0/parser.exe +0 -0
  52. data/vendor/local/libexec/installed-tests/json-glib-1.0/path.exe +0 -0
  53. data/vendor/local/libexec/installed-tests/json-glib-1.0/reader.exe +0 -0
  54. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-complex.exe +0 -0
  55. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-full.exe +0 -0
  56. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-simple.exe +0 -0
  57. data/vendor/local/libexec/installed-tests/json-glib-1.0/stream-load.json +1 -0
  58. data/vendor/local/share/gir-1.0/Json-1.0.gir +108 -60
  59. data/vendor/local/share/installed-tests/json-glib-1.0/array.test +3 -0
  60. data/vendor/local/share/installed-tests/json-glib-1.0/boxed.test +3 -0
  61. data/vendor/local/share/installed-tests/json-glib-1.0/builder.test +3 -0
  62. data/vendor/local/share/installed-tests/json-glib-1.0/generator.test +3 -0
  63. data/vendor/local/share/installed-tests/json-glib-1.0/gvariant.test +3 -0
  64. data/vendor/local/share/installed-tests/json-glib-1.0/invalid.test +3 -0
  65. data/vendor/local/share/installed-tests/json-glib-1.0/node.test +3 -0
  66. data/vendor/local/share/installed-tests/json-glib-1.0/object.test +3 -0
  67. data/vendor/local/share/installed-tests/json-glib-1.0/parser.test +3 -0
  68. data/vendor/local/share/installed-tests/json-glib-1.0/path.test +3 -0
  69. data/vendor/local/share/installed-tests/json-glib-1.0/reader.test +3 -0
  70. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-complex.test +3 -0
  71. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-full.test +3 -0
  72. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-simple.test +3 -0
  73. data/vendor/local/share/locale/as/LC_MESSAGES/json-glib-1.0.mo +0 -0
  74. data/vendor/local/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo +0 -0
  75. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo +0 -0
  76. data/vendor/local/share/locale/bs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  77. data/vendor/local/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo +0 -0
  78. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo +0 -0
  79. data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  80. data/vendor/local/share/locale/da/LC_MESSAGES/json-glib-1.0.mo +0 -0
  81. data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
  82. data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
  83. data/vendor/local/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo +0 -0
  84. data/vendor/local/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo +0 -0
  85. data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
  86. data/vendor/local/share/locale/et/LC_MESSAGES/json-glib-1.0.mo +0 -0
  87. data/vendor/local/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo +0 -0
  88. data/vendor/local/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  89. data/vendor/local/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo +0 -0
  90. data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  91. data/vendor/local/share/locale/he/LC_MESSAGES/json-glib-1.0.mo +0 -0
  92. data/vendor/local/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  93. data/vendor/local/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo +0 -0
  94. data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
  95. data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
  96. data/vendor/local/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo +0 -0
  97. data/vendor/local/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo +0 -0
  98. data/vendor/local/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo +0 -0
  99. data/vendor/local/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo +0 -0
  100. data/vendor/local/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  101. data/vendor/local/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo +0 -0
  102. data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
  103. data/vendor/local/share/locale/ne/LC_MESSAGES/json-glib-1.0.mo +0 -0
  104. data/vendor/local/share/locale/oc/LC_MESSAGES/json-glib-1.0.mo +0 -0
  105. data/vendor/local/share/locale/or/LC_MESSAGES/json-glib-1.0.mo +0 -0
  106. data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
  107. data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  108. data/vendor/local/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo +0 -0
  109. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
  110. data/vendor/local/share/locale/ro/LC_MESSAGES/json-glib-1.0.mo +0 -0
  111. data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
  112. data/vendor/local/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo +0 -0
  113. data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  114. data/vendor/local/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  115. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo +0 -0
  116. data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  117. data/vendor/local/share/locale/te/LC_MESSAGES/json-glib-1.0.mo +0 -0
  118. data/vendor/local/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo +0 -0
  119. data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  120. data/vendor/local/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo +0 -0
  121. data/vendor/local/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo +0 -0
  122. data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  123. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo +0 -0
  124. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo +0 -0
  125. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo +0 -0
  126. metadata +43 -66
  127. data/vendor/local/lib/libjson-glib-1.0.la +0 -41
  128. data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +0 -731
  129. data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +0 -657
  130. data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +0 -1191
  131. data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +0 -515
  132. data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +0 -1190
  133. data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +0 -80
  134. data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +0 -40
  135. data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +0 -40
  136. data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +0 -37
  137. data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +0 -32
  138. data/vendor/local/share/gtk-doc/html/json-glib/ch06.html +0 -43
  139. data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
  140. data/vendor/local/share/gtk-doc/html/json-glib/index.html +0 -158
  141. data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +0 -1074
  142. data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +0 -48
  143. data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +0 -55
  144. data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +0 -48
  145. data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +0 -180
  146. data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +0 -115
  147. data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +0 -155
  148. data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +0 -139
  149. data/vendor/local/share/gtk-doc/html/json-glib/ix09.html +0 -66
  150. data/vendor/local/share/gtk-doc/html/json-glib/ix10.html +0 -38
  151. data/vendor/local/share/gtk-doc/html/json-glib/ix11.html +0 -155
  152. data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +0 -49
  153. data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +0 -60
  154. data/vendor/local/share/gtk-doc/html/json-glib/json-format-tool.html +0 -83
  155. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +0 -493
  156. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +0 -387
  157. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +0 -1356
  158. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +0 -322
  159. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +0 -2240
  160. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +0 -1688
  161. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +0 -649
  162. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Utility-API.html +0 -158
  163. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +0 -217
  164. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +0 -343
  165. data/vendor/local/share/gtk-doc/html/json-glib/json-overview.html +0 -41
  166. data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +0 -66
  167. data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +0 -44
  168. data/vendor/local/share/gtk-doc/html/json-glib/json-validate-tool.html +0 -71
  169. data/vendor/local/share/gtk-doc/html/json-glib/left-insensitive.png +0 -0
  170. data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
  171. data/vendor/local/share/gtk-doc/html/json-glib/license.html +0 -57
  172. data/vendor/local/share/gtk-doc/html/json-glib/right-insensitive.png +0 -0
  173. data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
  174. data/vendor/local/share/gtk-doc/html/json-glib/style.css +0 -479
  175. data/vendor/local/share/gtk-doc/html/json-glib/tools.html +0 -37
  176. data/vendor/local/share/gtk-doc/html/json-glib/up-insensitive.png +0 -0
  177. data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
  178. data/vendor/local/share/man/man1/json-glib-format.1 +0 -60
  179. data/vendor/local/share/man/man1/json-glib-validate.1 +0 -56
@@ -1,515 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>JsonPath: JSON-GLib Reference Manual</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7
- <link rel="home" href="index.html" title="JSON-GLib Reference Manual">
8
- <link rel="up" href="ch02.html" title="Parser">
9
- <link rel="prev" href="JsonReader.html" title="JsonReader">
10
- <link rel="next" href="ch03.html" title="Generator">
11
- <meta name="generator" content="GTK-Doc V1.25 (XML mode)">
12
- <link rel="stylesheet" href="style.css" type="text/css">
13
- </head>
14
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
- <td width="100%" align="left" class="shortcuts">
17
- <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
- <a href="#JsonPath.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19
- <a href="#JsonPath.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20
- </td>
21
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
- <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
- <td><a accesskey="p" href="JsonReader.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
- <td><a accesskey="n" href="ch03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25
- </tr></table>
26
- <div class="refentry">
27
- <a name="JsonPath"></a><div class="titlepage"></div>
28
- <div class="refnamediv"><table width="100%"><tr>
29
- <td valign="top">
30
- <h2><span class="refentrytitle"><a name="JsonPath.top_of_page"></a>JsonPath</span></h2>
31
- <p>JsonPath — JSONPath implementation</p>
32
- </td>
33
- <td class="gallery_image" valign="top" align="right"></td>
34
- </tr></table></div>
35
- <div class="refsect1">
36
- <a name="JsonPath.functions"></a><h2>Functions</h2>
37
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
38
- <colgroup>
39
- <col width="150px" class="functions_return">
40
- <col class="functions_name">
41
- </colgroup>
42
- <tbody>
43
- <tr>
44
- <td class="function_type">
45
- <a class="link" href="JsonPath.html" title="JsonPath"><span class="returnvalue">JsonPath</span></a> *
46
- </td>
47
- <td class="function_name">
48
- <a class="link" href="JsonPath.html#json-path-new" title="json_path_new ()">json_path_new</a> <span class="c_punctuation">()</span>
49
- </td>
50
- </tr>
51
- <tr>
52
- <td class="function_type">
53
- <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
54
- </td>
55
- <td class="function_name">
56
- <a class="link" href="JsonPath.html#json-path-compile" title="json_path_compile ()">json_path_compile</a> <span class="c_punctuation">()</span>
57
- </td>
58
- </tr>
59
- <tr>
60
- <td class="function_type">
61
- <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
62
- </td>
63
- <td class="function_name">
64
- <a class="link" href="JsonPath.html#json-path-match" title="json_path_match ()">json_path_match</a> <span class="c_punctuation">()</span>
65
- </td>
66
- </tr>
67
- <tr>
68
- <td class="function_type">
69
- <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
70
- </td>
71
- <td class="function_name">
72
- <a class="link" href="JsonPath.html#json-path-query" title="json_path_query ()">json_path_query</a> <span class="c_punctuation">()</span>
73
- </td>
74
- </tr>
75
- </tbody>
76
- </table></div>
77
- </div>
78
- <div class="refsect1">
79
- <a name="JsonPath.other"></a><h2>Types and Values</h2>
80
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
81
- <colgroup>
82
- <col width="150px" class="name">
83
- <col class="description">
84
- </colgroup>
85
- <tbody>
86
- <tr>
87
- <td class="datatype_keyword"> </td>
88
- <td class="function_name"><a class="link" href="JsonPath.html#JsonPath-struct" title="JsonPath">JsonPath</a></td>
89
- </tr>
90
- <tr>
91
- <td class="datatype_keyword"> </td>
92
- <td class="function_name"><a class="link" href="JsonPath.html#JsonPathClass" title="JsonPathClass">JsonPathClass</a></td>
93
- </tr>
94
- <tr>
95
- <td class="define_keyword">#define</td>
96
- <td class="function_name"><a class="link" href="JsonPath.html#JSON-PATH-ERROR:CAPS" title="JSON_PATH_ERROR">JSON_PATH_ERROR</a></td>
97
- </tr>
98
- <tr>
99
- <td class="datatype_keyword">enum</td>
100
- <td class="function_name"><a class="link" href="JsonPath.html#JsonPathError" title="enum JsonPathError">JsonPathError</a></td>
101
- </tr>
102
- </tbody>
103
- </table></div>
104
- </div>
105
- <div class="refsect1">
106
- <a name="JsonPath.object-hierarchy"></a><h2>Object Hierarchy</h2>
107
- <pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
108
- <span class="lineart">╰──</span> JsonPath
109
- </pre>
110
- </div>
111
- <div class="refsect1">
112
- <a name="JsonPath.includes"></a><h2>Includes</h2>
113
- <pre class="synopsis">#include &lt;json-glib/json-glib.h&gt;
114
- </pre>
115
- </div>
116
- <div class="refsect1">
117
- <a name="JsonPath.description"></a><h2>Description</h2>
118
- <p><a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> is a simple class implementing the JSONPath syntax for extracting
119
- data out of a JSON tree. While the semantics of the JSONPath expressions are
120
- heavily borrowed by the XPath specification for XML, the syntax follows the
121
- ECMAScript origins of JSON.</p>
122
- <p>Once a <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance has been created, it has to compile a JSONPath
123
- expression using <a class="link" href="JsonPath.html#json-path-compile" title="json_path_compile ()"><code class="function">json_path_compile()</code></a> before being able to match it to a
124
- JSON tree; the same <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance can be used to match multiple JSON
125
- trees. It it also possible to compile a new JSONPath expression using the
126
- same <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance; the previous expression will be discarded only if
127
- the compilation of the new expression is successful.</p>
128
- <p>The simple convenience function <a class="link" href="JsonPath.html#json-path-query" title="json_path_query ()"><code class="function">json_path_query()</code></a> can be used for one-off
129
- matching.</p>
130
- <div class="refsect3">
131
- <a name="id-1.4.3.4.7.5"></a><h4>Syntax of the JSONPath expressions</h4>
132
- <p>A JSONPath expression is composed by path indices and operators.
133
- Each path index can either be a member name or an element index inside
134
- a JSON tree. A JSONPath expression must start with the '$' operator; each
135
- path index is separated using either the dot notation or the bracket
136
- notation, e.g.:</p>
137
- <div class="informalexample">
138
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
139
- <tbody>
140
- <tr>
141
- <td class="listing_lines" align="right"><pre>1
142
- 2
143
- 3
144
- 4
145
- 5</pre></td>
146
- <td class="listing_code"><pre class="programlisting"><span class="comment">// dot notation</span>
147
- <span class="normal">$</span><span class="symbol">.</span><span class="normal">store</span><span class="symbol">.</span><span class="normal">book</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">title</span>
148
-
149
- <span class="comment">// bracket notation</span>
150
- <span class="normal">$</span><span class="symbol">[</span><span class="string">'store'</span><span class="symbol">][</span><span class="string">'book'</span><span class="symbol">][</span><span class="number">0</span><span class="symbol">][</span><span class="string">'title'</span><span class="symbol">]</span></pre></td>
151
- </tr>
152
- </tbody>
153
- </table>
154
- </div>
155
-
156
- <p></p>
157
- <p>The available operators are:</p>
158
- <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
159
- <li class="listitem"><p>Root node
160
- The '$' character represents the root node of the JSON tree, and
161
- matches the entire document.</p></li>
162
- <li class="listitem"><p>Child nodes can either be matched using '.' or '[]'. For instance,
163
- both <code class="literal">$.store.book</code> and `$'store' match the contents of
164
- the book member of the store object.</p></li>
165
- <li class="listitem"><p>Child nodes can be reached without specifying the whole tree structure
166
- through the recursive descent operator, or '..'. For instance,
167
- <code class="literal">$..author</code> matches all author member in every object.</p></li>
168
- <li class="listitem"><p>Child nodes can grouped through the wildcard operator, or '*'. For
169
- instance, <code class="literal">$.store.book[*].author</code> matches all author members of any
170
- object element contained in the book array of the store object.</p></li>
171
- <li class="listitem"><p>Element nodes can be accessed using their index (starting from zero)
172
- in the subscript operator '[]'. For instance, <code class="literal">$.store.book[0]</code> matches
173
- the first element of the book array of the store object.</p></li>
174
- <li class="listitem"><p>Subsets of element nodes can be accessed using the set notation
175
- operator '[start,end]'. For instance, <code class="literal">$.store.book[0,2]</code> matches the
176
- first, second, and third elements of the book array of the store
177
- object.</p></li>
178
- <li class="listitem"><p>Slices of element nodes can be accessed using the slice notation
179
- operation '[start:end:step]'. If start is omitted, the starting index
180
- of the slice is implied to be zero; if end is omitted, the ending index
181
- of the slice is implied to be the length of the array; if step is
182
- omitted, the step of the slice is implied to be 1. For instance,
183
- <code class="literal">$.store.book[:2]</code> matches the first two elements of the book array
184
- of the store object.</p></li>
185
- </ul></div>
186
- <p>More information about JSONPath is available on Stefan Gössner's
187
- <a class="ulink" href="http://goessner.net/articles/JsonPath/" target="_top">JSONPath website</a>.</p>
188
- </div>
189
- <div class="refsect3">
190
- <a name="id-1.4.3.4.7.6"></a><h4>Example of JSONPath matches</h4>
191
- <p>The following example shows some of the results of using <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a>
192
- on a JSON tree. We use the following JSON description of a bookstore:</p>
193
- <div class="informalexample">
194
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
195
- <tbody>
196
- <tr>
197
- <td class="listing_lines" align="right"><pre>1
198
- 2
199
- 3
200
- 4
201
- 5
202
- 6
203
- 7
204
- 8
205
- 9
206
- 10
207
- 11
208
- 12
209
- 13
210
- 14
211
- 15
212
- 16</pre></td>
213
- <td class="listing_code"><pre class="programlisting"><span class="cbracket">{</span><span class="normal"> </span><span class="string">"store"</span><span class="symbol">:</span><span class="normal"> </span><span class="cbracket">{</span>
214
- <span class="normal"> </span><span class="string">"book"</span><span class="symbol">:</span><span class="normal"> </span><span class="symbol">[</span>
215
- <span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="string">"category"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"reference"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"author"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Nigel Rees"</span><span class="symbol">,</span>
216
- <span class="normal"> </span><span class="string">"title"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Sayings of the Century"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"price"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"8.95"</span><span class="normal"> </span><span class="cbracket">}</span><span class="symbol">,</span>
217
- <span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="string">"category"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"fiction"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"author"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Evelyn Waugh"</span><span class="symbol">,</span>
218
- <span class="normal"> </span><span class="string">"title"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Sword of Honour"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"price"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"12.99"</span><span class="normal"> </span><span class="cbracket">}</span><span class="symbol">,</span>
219
- <span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="string">"category"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"fiction"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"author"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Herman Melville"</span><span class="symbol">,</span>
220
- <span class="normal"> </span><span class="string">"title"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Moby Dick"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"isbn"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"0-553-21311-3"</span><span class="symbol">,</span>
221
- <span class="normal"> </span><span class="string">"price"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"8.99"</span><span class="normal"> </span><span class="cbracket">}</span><span class="symbol">,</span>
222
- <span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="string">"category"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"fiction"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"author"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"J. R. R. Tolkien"</span><span class="symbol">,</span>
223
- <span class="normal"> </span><span class="string">"title"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"The Lord of the Rings"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"isbn"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"0-395-19395-8"</span><span class="symbol">,</span>
224
- <span class="normal"> </span><span class="string">"price"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"22.99"</span><span class="normal"> </span><span class="cbracket">}</span>
225
- <span class="normal"> </span><span class="symbol">],</span>
226
- <span class="normal"> </span><span class="string">"bicycle"</span><span class="symbol">:</span><span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="string">"color"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"red"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"price"</span><span class="symbol">:</span><span class="normal"> </span><span class="string">"19.95"</span><span class="normal"> </span><span class="cbracket">}</span>
227
- <span class="normal"> </span><span class="cbracket">}</span>
228
- <span class="cbracket">}</span></pre></td>
229
- </tr>
230
- </tbody>
231
- </table>
232
- </div>
233
-
234
- <p></p>
235
- <p>We can parse the JSON using <a class="link" href="JsonParser.html" title="JsonParser"><span class="type">JsonParser</span></a>:</p>
236
- <div class="informalexample">
237
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
238
- <tbody>
239
- <tr>
240
- <td class="listing_lines" align="right"><pre>1
241
- 2</pre></td>
242
- <td class="listing_code"><pre class="programlisting"><span class="usertype">JsonParser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">parser </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonParser.html#json-parser-new">json_parser_new</a></span><span class="normal"> </span><span class="symbol">();</span>
243
- <span class="function"><a href="JsonParser.html#json-parser-load-from-data">json_parser_load_from_data</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parser</span><span class="symbol">,</span><span class="normal"> json_data</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
244
- </tr>
245
- </tbody>
246
- </table>
247
- </div>
248
-
249
- <p></p>
250
- <p>If we run the following code:</p>
251
- <div class="informalexample">
252
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
253
- <tbody>
254
- <tr>
255
- <td class="listing_lines" align="right"><pre>1
256
- 2
257
- 3
258
- 4</pre></td>
259
- <td class="listing_code"><pre class="programlisting"><span class="usertype">JsonNode</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">result</span><span class="symbol">;</span>
260
- <span class="usertype">JsonPath</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">path </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonPath.html#json-path-new">json_path_new</a></span><span class="normal"> </span><span class="symbol">();</span>
261
- <span class="function"><a href="JsonPath.html#json-path-compile">json_path_compile</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">path</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"$.store..author"</span><span class="symbol">,</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
262
- <span class="normal">result </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonPath.html#json-path-match">json_path_match</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">path</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="JsonParser.html#json-parser-get-root">json_parser_get_root</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parser</span><span class="symbol">));</span></pre></td>
263
- </tr>
264
- </tbody>
265
- </table>
266
- </div>
267
-
268
- <p></p>
269
- <p>The result <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> will contain an array with all values of the
270
- author member of the objects in the JSON tree. If we use a
271
- <a class="link" href="JsonGenerator.html" title="JsonGenerator"><span class="type">JsonGenerator</span></a> to convert the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to a string and print it:</p>
272
- <div class="informalexample">
273
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
274
- <tbody>
275
- <tr>
276
- <td class="listing_lines" align="right"><pre>1
277
- 2
278
- 3
279
- 4</pre></td>
280
- <td class="listing_code"><pre class="programlisting"><span class="usertype">JsonGenerator</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">generator </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonGenerator.html#json-generator-new">json_generator_new</a></span><span class="normal"> </span><span class="symbol">();</span>
281
- <span class="function"><a href="JsonGenerator.html#json-generator-set-root">json_generator_set_root</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">generator</span><span class="symbol">,</span><span class="normal"> result</span><span class="symbol">);</span>
282
- <span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">str </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonGenerator.html#json-generator-to-data">json_generator_to_data</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">generator</span><span class="symbol">,</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
283
- <span class="function"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Results: %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> str</span><span class="symbol">);</span></pre></td>
284
- </tr>
285
- </tbody>
286
- </table>
287
- </div>
288
-
289
- <p></p>
290
- <p>The output will be:</p>
291
- <div class="informalexample">
292
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
293
- <tbody>
294
- <tr>
295
- <td class="listing_lines" align="right"><pre>1</pre></td>
296
- <td class="listing_code"><pre class="programlisting"><span class="symbol">[</span><span class="string">"Nigel Rees"</span><span class="symbol">,</span><span class="string">"Evelyn Waugh"</span><span class="symbol">,</span><span class="string">"Herman Melville"</span><span class="symbol">,</span><span class="string">"J. R. R. Tolkien"</span><span class="symbol">]</span></pre></td>
297
- </tr>
298
- </tbody>
299
- </table>
300
- </div>
301
-
302
- <p></p>
303
- <p><a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> is available since JSON-GLib 0.14</p>
304
- </div>
305
- </div>
306
- <div class="refsect1">
307
- <a name="JsonPath.functions_details"></a><h2>Functions</h2>
308
- <div class="refsect2">
309
- <a name="json-path-new"></a><h3>json_path_new ()</h3>
310
- <pre class="programlisting"><a class="link" href="JsonPath.html" title="JsonPath"><span class="returnvalue">JsonPath</span></a> *
311
- json_path_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
312
- <p>Creates a new <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance.</p>
313
- <p>Once created, the <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> object should be used with <a class="link" href="JsonPath.html#json-path-compile" title="json_path_compile ()"><code class="function">json_path_compile()</code></a>
314
- and <a class="link" href="JsonPath.html#json-path-match" title="json_path_match ()"><code class="function">json_path_match()</code></a>.</p>
315
- <div class="refsect3">
316
- <a name="json-path-new.returns"></a><h4>Returns</h4>
317
- <p> the newly created <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance. Use
318
- <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> to free the allocated resources when done. </p>
319
- <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
320
- </div>
321
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
322
- </div>
323
- <hr>
324
- <div class="refsect2">
325
- <a name="json-path-compile"></a><h3>json_path_compile ()</h3>
326
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
327
- json_path_compile (<em class="parameter"><code><a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> *path</code></em>,
328
- <em class="parameter"><code>const <span class="type">char</span> *expression</code></em>,
329
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
330
- <p>Validates and decomposes <em class="parameter"><code>expression</code></em>
331
- .</p>
332
- <p>A JSONPath expression must be compiled before calling <a class="link" href="JsonPath.html#json-path-match" title="json_path_match ()"><code class="function">json_path_match()</code></a>.</p>
333
- <div class="refsect3">
334
- <a name="json-path-compile.parameters"></a><h4>Parameters</h4>
335
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
336
- <colgroup>
337
- <col width="150px" class="parameters_name">
338
- <col class="parameters_description">
339
- <col width="200px" class="parameters_annotations">
340
- </colgroup>
341
- <tbody>
342
- <tr>
343
- <td class="parameter_name"><p>path</p></td>
344
- <td class="parameter_description"><p>a <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a></p></td>
345
- <td class="parameter_annotations"> </td>
346
- </tr>
347
- <tr>
348
- <td class="parameter_name"><p>expression</p></td>
349
- <td class="parameter_description"><p>a JSONPath expression</p></td>
350
- <td class="parameter_annotations"> </td>
351
- </tr>
352
- <tr>
353
- <td class="parameter_name"><p>error</p></td>
354
- <td class="parameter_description"><p>return location for a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
355
- <td class="parameter_annotations"> </td>
356
- </tr>
357
- </tbody>
358
- </table></div>
359
- </div>
360
- <div class="refsect3">
361
- <a name="json-path-compile.returns"></a><h4>Returns</h4>
362
- <p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success; on error, <em class="parameter"><code>error</code></em>
363
- will be set with
364
- the <a class="link" href="JsonPath.html#JSON-PATH-ERROR:CAPS" title="JSON_PATH_ERROR"><code class="literal">JSON_PATH_ERROR</code></a> domain and a code from the <a class="link" href="JsonPath.html#JsonPathError" title="enum JsonPathError"><span class="type">JsonPathError</span></a>
365
- enumeration, and <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned</p>
366
- </div>
367
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
368
- </div>
369
- <hr>
370
- <div class="refsect2">
371
- <a name="json-path-match"></a><h3>json_path_match ()</h3>
372
- <pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
373
- json_path_match (<em class="parameter"><code><a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> *path</code></em>,
374
- <em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *root</code></em>);</pre>
375
- <p>Matches the JSON tree pointed by <em class="parameter"><code>root</code></em>
376
- using the expression compiled
377
- into the <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a>.</p>
378
- <p>The matching <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a> will be copied into a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> and
379
- returned wrapped in a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
380
- <div class="refsect3">
381
- <a name="json-path-match.parameters"></a><h4>Parameters</h4>
382
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
383
- <colgroup>
384
- <col width="150px" class="parameters_name">
385
- <col class="parameters_description">
386
- <col width="200px" class="parameters_annotations">
387
- </colgroup>
388
- <tbody>
389
- <tr>
390
- <td class="parameter_name"><p>path</p></td>
391
- <td class="parameter_description"><p>a compiled <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a></p></td>
392
- <td class="parameter_annotations"> </td>
393
- </tr>
394
- <tr>
395
- <td class="parameter_name"><p>root</p></td>
396
- <td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
397
- <td class="parameter_annotations"> </td>
398
- </tr>
399
- </tbody>
400
- </table></div>
401
- </div>
402
- <div class="refsect3">
403
- <a name="json-path-match.returns"></a><h4>Returns</h4>
404
- <p> a newly-created <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type
405
- <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a> containing an array of matching <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a>.
406
- Use <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a> when done. </p>
407
- <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
408
- </div>
409
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
410
- </div>
411
- <hr>
412
- <div class="refsect2">
413
- <a name="json-path-query"></a><h3>json_path_query ()</h3>
414
- <pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
415
- json_path_query (<em class="parameter"><code>const <span class="type">char</span> *expression</code></em>,
416
- <em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *root</code></em>,
417
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
418
- <p>Queries a JSON tree using a JSONPath expression.</p>
419
- <p>This function is a simple wrapper around <a class="link" href="JsonPath.html#json-path-new" title="json_path_new ()"><code class="function">json_path_new()</code></a>,
420
- <a class="link" href="JsonPath.html#json-path-compile" title="json_path_compile ()"><code class="function">json_path_compile()</code></a> and <a class="link" href="JsonPath.html#json-path-match" title="json_path_match ()"><code class="function">json_path_match()</code></a>. It implicitly
421
- creates a <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> instance, compiles <em class="parameter"><code>expression</code></em>
422
- and
423
- matches it against the JSON tree pointed by <em class="parameter"><code>root</code></em>
424
- .</p>
425
- <div class="refsect3">
426
- <a name="json-path-query.parameters"></a><h4>Parameters</h4>
427
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
428
- <colgroup>
429
- <col width="150px" class="parameters_name">
430
- <col class="parameters_description">
431
- <col width="200px" class="parameters_annotations">
432
- </colgroup>
433
- <tbody>
434
- <tr>
435
- <td class="parameter_name"><p>expression</p></td>
436
- <td class="parameter_description"><p>a JSONPath expression</p></td>
437
- <td class="parameter_annotations"> </td>
438
- </tr>
439
- <tr>
440
- <td class="parameter_name"><p>root</p></td>
441
- <td class="parameter_description"><p>the root of a JSON tree</p></td>
442
- <td class="parameter_annotations"> </td>
443
- </tr>
444
- <tr>
445
- <td class="parameter_name"><p>error</p></td>
446
- <td class="parameter_description"><p>return location for a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
447
- <td class="parameter_annotations"> </td>
448
- </tr>
449
- </tbody>
450
- </table></div>
451
- </div>
452
- <div class="refsect3">
453
- <a name="json-path-query.returns"></a><h4>Returns</h4>
454
- <p> a newly-created <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type
455
- <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a> containing an array of matching <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a>.
456
- Use <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a> when done. </p>
457
- <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
458
- </div>
459
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
460
- </div>
461
- </div>
462
- <div class="refsect1">
463
- <a name="JsonPath.other_details"></a><h2>Types and Values</h2>
464
- <div class="refsect2">
465
- <a name="JsonPath-struct"></a><h3>JsonPath</h3>
466
- <pre class="programlisting">typedef struct _JsonPath JsonPath;</pre>
467
- <p>The <code class="literal">JsonPath</code> structure is an opaque object whose members cannot be
468
- directly accessed except through the provided API.</p>
469
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
470
- </div>
471
- <hr>
472
- <div class="refsect2">
473
- <a name="JsonPathClass"></a><h3>JsonPathClass</h3>
474
- <pre class="programlisting">typedef struct _JsonPathClass JsonPathClass;</pre>
475
- <p>The <code class="literal">JsonPathClass</code> structure is an opaque object class whose members
476
- cannot be directly accessed.</p>
477
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
478
- </div>
479
- <hr>
480
- <div class="refsect2">
481
- <a name="JSON-PATH-ERROR:CAPS"></a><h3>JSON_PATH_ERROR</h3>
482
- <pre class="programlisting">#define JSON_PATH_ERROR (json_path_error_quark ())
483
- </pre>
484
- <p>Error domain for <a class="link" href="JsonPath.html" title="JsonPath"><span class="type">JsonPath</span></a> errors</p>
485
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
486
- </div>
487
- <hr>
488
- <div class="refsect2">
489
- <a name="JsonPathError"></a><h3>enum JsonPathError</h3>
490
- <p>Error code enumeration for the <a class="link" href="JsonPath.html#JSON-PATH-ERROR:CAPS" title="JSON_PATH_ERROR"><code class="literal">JSON_PATH_ERROR</code></a> domain.</p>
491
- <div class="refsect3">
492
- <a name="JsonPathError.members"></a><h4>Members</h4>
493
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
494
- <colgroup>
495
- <col width="300px" class="enum_members_name">
496
- <col class="enum_members_description">
497
- <col width="200px" class="enum_members_annotations">
498
- </colgroup>
499
- <tbody><tr>
500
- <td class="enum_member_name"><p><a name="JSON-PATH-ERROR-INVALID-QUERY:CAPS"></a>JSON_PATH_ERROR_INVALID_QUERY</p></td>
501
- <td class="enum_member_description">
502
- <p>Invalid query</p>
503
- </td>
504
- <td class="enum_member_annotations"> </td>
505
- </tr></tbody>
506
- </table></div>
507
- </div>
508
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
509
- </div>
510
- </div>
511
- </div>
512
- <div class="footer">
513
- <hr>Generated by GTK-Doc V1.25</div>
514
- </body>
515
- </html>