<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19735">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">json.h: Add ast_json_object_real_get.<br><br>json.h contains macros to get a string and an integer<br>from a JSON object. However, the macro to do this for<br>JSON reals is missing. This adds that.<br><br>ASTERISK-30361 #close<br><br>Change-Id: I8d0e28d763febf27b05801cdc83b73282aa6ee7a<br>---<br>M include/asterisk/json.h<br>1 file changed, 24 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/19735/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/asterisk/json.h b/include/asterisk/json.h</span><br><span>index 9c42c3f..5edc3a9 100644</span><br><span>--- a/include/asterisk/json.h</span><br><span>+++ b/include/asterisk/json.h</span><br><span>@@ -593,6 +593,15 @@</span><br><span> #define ast_json_object_integer_get(object, key) ast_json_integer_get(ast_json_object_get(object, key))</span><br><span> </span><br><span> /*!</span><br><span style="color: hsl(120, 100%, 40%);">+ * \brief Get a double field from a JSON object.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param object JSON object.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param key Key of double field to look up.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \return Value of a JSON double.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \retval 0 if \a real is not a JSON real number.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+#define ast_json_object_real_get(object, key) ast_json_real_get(ast_json_object_get(object, key))</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/*!</span><br><span>  * \brief Set a field in a JSON object.</span><br><span>  * \since 12.0.0</span><br><span>  *</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19735">change 19735</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19735"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: I8d0e28d763febf27b05801cdc83b73282aa6ee7a </div>
<div style="display:none"> Gerrit-Change-Number: 19735 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>