Wirepas SDK
cborjson.h File Reference

Go to the source code of this file.

Functions

CborError cbor_value_to_json_advance (FILE *out, CborValue *value, int flags)
 
static CborError cbor_value_to_json (FILE *out, const CborValue *value, int flags)
 

Enumerations

enum  CborToJsonFlags {
  CborConvertAddMetadata = 1, CborConvertTagsToObjects = 2, CborConvertIgnoreTags = 0, CborConvertObeyByteStringTags = 0,
  CborConvertByteStringsToBase64Url = 4, CborConvertRequireMapStringKeys = 0, CborConvertStringifyMapKeys = 8, CborConvertDefaultFlags = 0
}
 

Function Documentation

◆ cbor_value_to_json()

static CborError cbor_value_to_json ( FILE *  out,
const CborValue value,
int  flags 
)
static

Definition at line 51 of file cborjson.h.

52 {
53  CborValue copy = *value;
54  return cbor_value_to_json_advance(out, &copy, flags);
55 }

◆ cbor_value_to_json_advance()

CborError cbor_value_to_json_advance ( FILE *  out,
CborValue value,
int  flags 
)

Enumeration Type Documentation

◆ CborToJsonFlags

Enumerator
CborConvertAddMetadata 
CborConvertTagsToObjects 
CborConvertIgnoreTags 
CborConvertObeyByteStringTags 
CborConvertByteStringsToBase64Url 
CborConvertRequireMapStringKeys 
CborConvertStringifyMapKeys 
CborConvertDefaultFlags 

Definition at line 35 of file cborjson.h.

CborConvertTagsToObjects
@ CborConvertTagsToObjects
Definition: cborjson.h:60
CborConvertDefaultFlags
@ CborConvertDefaultFlags
Definition: cborjson.h:69
CborValue
Definition: cbor.h:283
CborConvertAddMetadata
@ CborConvertAddMetadata
Definition: cborjson.h:59
CborConvertIgnoreTags
@ CborConvertIgnoreTags
Definition: cborjson.h:61
CborConvertStringifyMapKeys
@ CborConvertStringifyMapKeys
Definition: cborjson.h:67
cbor_value_to_json_advance
CborError cbor_value_to_json_advance(FILE *out, CborValue *value, int flags)
CborConvertRequireMapStringKeys
@ CborConvertRequireMapStringKeys
Definition: cborjson.h:66
CborConvertByteStringsToBase64Url
@ CborConvertByteStringsToBase64Url
Definition: cborjson.h:64
CborConvertObeyByteStringTags
@ CborConvertObeyByteStringTags
Definition: cborjson.h:63