JW_FLT

Table of Contents

JW_FLT

Description

Append a floating-point value to a JSON string.

Parameters

NameDirectionDescription
jin,outThe target string to append to.
finFloating-point value.

Usage example (from documentation)

  JW_FLT(json, 3.14);

Success

Appends a float value to json

Failure

Does not return on failure

Usage example (Cross-references)

    }                                                                                                              \
    StrAppendf(&(j), "\"%s\":", k);                                                                                \
    JW_FLT(j, f);                                                                                                  \
    } while (0)

Share :

Related Posts

JW_INT

JW_INT Description Append an integer value to a JSON string.

Read More

JR_ARR_KV

JR_ARR_KV Description Conditionally parse a JSON array if key matches expected name.

Read More

JR_FLT

JR_FLT Description Read a JSON float value from stream and assign to target.

Read More