Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
json_number Struct Reference

The structure of a JSON number value. More...

#include <json.h>

Data Fields

aint uiType
 Identifies the number type. One of. More...
 
union {
   double   dFloat
 If uiType = JSON_ID_FLOAT, the floating point value. More...
 
   uint64_t   uiUnsigned
 If uiType = JSON_ID_UNSIGNED, the unsigned int value. More...
 
   int64_t   iSigned
 If uiType = JSON_ID_SIGNED, the signed int value. More...
 
}; 
 double floating point, unsigned integer, signed integer More...
 

Detailed Description

The structure of a JSON number value.

The json object differentiates between three different number types – floating point, signed and unsigned integer values.

Definition at line 73 of file json.h.

Field Documentation

◆ @7

union { ... }

double floating point, unsigned integer, signed integer

Only one is needed at a time from this space-saving union.

◆ dFloat

double json_number::dFloat

If uiType = JSON_ID_FLOAT, the floating point value.

Definition at line 80 of file json.h.

◆ iSigned

int64_t json_number::iSigned

If uiType = JSON_ID_SIGNED, the signed int value.

Definition at line 82 of file json.h.

◆ uiType

aint json_number::uiType

Identifies the number type. One of.

  • JSON_ID_FLOAT
  • JSON_ID_SIGNED
  • JSON_ID_UNSIGNED

Definition at line 74 of file json.h.

◆ uiUnsigned

uint64_t json_number::uiUnsigned

If uiType = JSON_ID_UNSIGNED, the unsigned int value.

Definition at line 81 of file json.h.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.