<reponame>TS7-development/jsonrpc<filename>docs/latex/structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json.tex
\hypertarget{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}{}\doxysection{ts7\+::jsonrpc\+\_\+playground\+::json\+\_\+call\+::As\+Json$<$ T $>$ Struct Template Reference}
\label{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}\index{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}}


Convert to json.  




{\ttfamily \#include $<$t5.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
constexpr \mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a0b4692ef749dbd0621ba94b4a14dbf21}{As\+Json}} (const T \&\mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a77484329d622abbd87dcc7f6a35557ef}{ref}})
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
\mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_ac4afe3de70ad247247d3063689232811}{operator boost\+::json\+::value}} () const
\begin{DoxyCompactList}\small\item\em Cast operator. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
const T \& \mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a77484329d622abbd87dcc7f6a35557ef}{ref}}
\begin{DoxyCompactList}\small\item\em Stored const reference. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
struct ts7\+::jsonrpc\+\_\+playground\+::json\+\_\+call\+::\+As\+Json$<$ T $>$}

Convert to json. 

Converts any type to a json.

\begin{DoxyNote}{Note}
This version does not contain the static\+\_\+assert. Check \mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_from_json}{From\+Json}}, to see how this can be achieved.
\end{DoxyNote}

\begin{DoxyTemplParams}{Template Parameters}
{\em T} & The type that shall be converted to a json value.\\
\hline
\end{DoxyTemplParams}
\begin{DoxySince}{Since}
1.\+0
\end{DoxySince}
\begin{DoxyAuthor}{Author}
<NAME> \href{mailto:<EMAIL>}{\texttt{ <EMAIL>}} 
\end{DoxyAuthor}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a0b4692ef749dbd0621ba94b4a14dbf21}\label{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a0b4692ef749dbd0621ba94b4a14dbf21}} 
\index{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}!AsJson@{AsJson}}
\index{AsJson@{AsJson}!ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{AsJson()}{AsJson()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
constexpr \mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}{ts7\+::jsonrpc\+\_\+playground\+::json\+\_\+call\+::\+As\+Json}}$<$ T $>$\+::\mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}{As\+Json}} (\begin{DoxyParamCaption}\item[{const T \&}]{ref }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}, {\ttfamily [constexpr]}}



constructor 

Creates an instance that stores the const reference to the provided variable.


\begin{DoxyParams}{Parameters}
{\em ref} & Const reference that shall be used.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+0
\end{DoxySince}
\begin{DoxyAuthor}{Author}
<NAME> \href{mailto:<EMAIL>}{\texttt{ <EMAIL>}} 
\end{DoxyAuthor}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_ac4afe3de70ad247247d3063689232811}\label{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_ac4afe3de70ad247247d3063689232811}} 
\index{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}!operator boost::json::value@{operator boost::json::value}}
\index{operator boost::json::value@{operator boost::json::value}!ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{operator boost::json::value()}{operator boost::json::value()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
\mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}{ts7\+::jsonrpc\+\_\+playground\+::json\+\_\+call\+::\+As\+Json}}$<$ T $>$\+::operator boost\+::json\+::value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Cast operator. 

Casts the provided const reference to a json value.

\begin{DoxyAttention}{Attention}
This operator is not implemented and will cause a linker error. For any type that shall be supported a corresponding template specialization needs to be created.
\end{DoxyAttention}
\begin{DoxySince}{Since}
1.\+0
\end{DoxySince}
\begin{DoxyAuthor}{Author}
<NAME> \href{mailto:<EMAIL>}{\texttt{ <EMAIL>}} 
\end{DoxyAuthor}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a77484329d622abbd87dcc7f6a35557ef}\label{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json_a77484329d622abbd87dcc7f6a35557ef}} 
\index{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}!ref@{ref}}
\index{ref@{ref}!ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$@{ts7::jsonrpc\_playground::json\_call::AsJson$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{ref}{ref}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
const T\& \mbox{\hyperlink{structts7_1_1jsonrpc__playground_1_1json__call_1_1_as_json}{ts7\+::jsonrpc\+\_\+playground\+::json\+\_\+call\+::\+As\+Json}}$<$ T $>$\+::ref}



Stored const reference. 



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
playground/003-\/json-\/call/\mbox{\hyperlink{t5_8h}{t5.\+h}}\end{DoxyCompactItemize}
