%PDF- %PDF-
Direktori : /usr/share/doc/systemtap-client-2.9/ |
Current File : //usr/share/doc/systemtap-client-2.9/API-json-data.html |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>probe::json_data</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="SystemTap Tapset Reference Manual"><link rel="up" href="json.stp.html" title="Chapter 33. JSON Tapset"><link rel="prev" href="API-json-output-string-value.html" title="macro::json_output_string_value"><link rel="next" href="switchfile.stp.html" title="Chapter 34. Output file switching Tapset"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>probe::json_data</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-json-output-string-value.html">Prev</a> </td><th width="60%" align="center">Chapter 33. JSON Tapset</th><td width="20%" align="right"> <a accesskey="n" href="switchfile.stp.html">Next</a></td></tr></table><hr></div><div class="refentry" title="probe::json_data"><a name="API-json-data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>probe::json_data — Fires whenever JSON data is wanted by a reader. </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="synopsis">json_data </pre></div><div class="refsect1" title="Values"><a name="idp14749104"></a><h2>Values</h2><p> None </p></div><div class="refsect1" title="Context"><a name="idp14750320"></a><h2>Context</h2><p> This probe fires when the JSON data is about to be read. This probe must gather up data and then call the following macros to output the data in JSON format. First, <em class="parameter"><code>json_output_data_start</code></em>() must be called. That call is followed by one or more of the following (one call for each data item): <em class="parameter"><code>json_output_string_value</code></em>(), <em class="parameter"><code>json_output_numeric_value</code></em>(), <em class="parameter"><code>json_output_array_string_value</code></em>(), and <em class="parameter"><code>json_output_array_numeric_value</code></em>(). Finally <em class="parameter"><code>json_output_data_end</code></em>() must be called. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-json-output-string-value.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="json.stp.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="switchfile.stp.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>macro::json_output_string_value</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 34. Output file switching Tapset</td></tr></table></div></body></html>