grblHAL core  20251012
stream_json.h File Reference
#include <stdlib.h>
#include <stdbool.h>

Go to the source code of this file.

Typedefs

typedef struct json_out json_out_t
 

Functions

json_out_tjson_start (vfs_file_t *file, uint32_t max_levels)
 
bool json_end (json_out_t *json)
 
bool json_start_object (json_out_t *json)
 
bool json_start_tagged_object (json_out_t *json, const char *tag)
 
bool json_end_object (json_out_t *json)
 
bool json_start_array (json_out_t *json, const char *tag)
 
bool json_end_array (json_out_t *json)
 
bool json_add_string (json_out_t *json, const char *tag, const char *s)
 
bool json_add_int (json_out_t *json, const char *tag, int32_t value)
 

Typedef Documentation

◆ json_out_t

typedef struct json_out json_out_t

Function Documentation

◆ json_add_int()

bool json_add_int ( json_out_t json,
const char *  tag,
int32_t  value 
)

◆ json_add_string()

bool json_add_string ( json_out_t json,
const char *  tag,
const char *  s 
)

◆ json_end()

bool json_end ( json_out_t json)

◆ json_end_array()

bool json_end_array ( json_out_t json)

◆ json_end_object()

bool json_end_object ( json_out_t json)

◆ json_start()

json_out_t* json_start ( vfs_file_t file,
uint32_t  max_levels 
)

◆ json_start_array()

bool json_start_array ( json_out_t json,
const char *  tag 
)

◆ json_start_object()

bool json_start_object ( json_out_t json)

◆ json_start_tagged_object()

bool json_start_tagged_object ( json_out_t json,
const char *  tag 
)