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}
CborError cbor_value_to_json_advance(FILE *out, CborValue *value, int flags)

◆ 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.

36{
40
43
46
48};
@ CborConvertObeyByteStringTags
Definition cborjson.h:41
@ CborConvertByteStringsToBase64Url
Definition cborjson.h:42
@ CborConvertAddMetadata
Definition cborjson.h:37
@ CborConvertIgnoreTags
Definition cborjson.h:39
@ CborConvertStringifyMapKeys
Definition cborjson.h:45
@ CborConvertDefaultFlags
Definition cborjson.h:47
@ CborConvertRequireMapStringKeys
Definition cborjson.h:44
@ CborConvertTagsToObjects
Definition cborjson.h:38