Genivia Home Documentation
json.h File Reference

updated Wed Feb 3 2016
 
Functions
json.h File Reference
#include "soapH.h"
Include dependency graph for json.h:

Functions

int json_error (struct soap *soap, struct value *v)
 
int json_write (struct soap *soap, const struct value *v)
 
int json_send (struct soap *soap, const struct value *v)
 
int json_read (struct soap *soap, struct value *v)
 
int json_recv (struct soap *soap, struct value *v)
 
int json_call (struct soap *soap, const char *endpoint, const struct value *in, struct value *out)
 
int json_send_string (struct soap *soap, const char *s)
 

Function Documentation

int json_call ( struct soap *  soap,
const char *  endpoint,
const struct value in,
struct value out 
)

Client-side JSON REST call to endpoint URL with optional in and out values (POST with in/out, GET with out, PUT with in, DELETE without in/out), returns SOAP_OK or HTTP code

int json_error ( struct soap *  soap,
struct value v 
)

If soap context has an error, set/add error message to 'v' and return error code

int json_read ( struct soap *  soap,
struct value v 
)

Read a value in JSON format from a file, socket, or stream

int json_recv ( struct soap *  soap,
struct value v 
)

Receive a value in JSON format from a file, socket, or stream (lower level function, must use soap_begin_recv/soap_end_recv also)

int json_send ( struct soap *  soap,
const struct value v 
)

Send a value in JSON format to a file, socket, or stream (lower level function, must use soap_begin_send/soap_end_send also)

int json_send_string ( struct soap *  soap,
const char *  s 
)
int json_write ( struct soap *  soap,
const struct value v 
)

Write a value in JSON format to a file, socket, or stream