Pigweed
Loading...
Searching...
No Matches
builder.h File Reference
#include <cstddef>
#include <string_view>
#include <type_traits>
#include "pw_assert/assert.h"
#include "pw_json/internal/nesting.h"
#include "pw_span/span.h"
#include "pw_status/status.h"
#include "pw_status/status_with_size.h"
#include "pw_json/internal/builder_impl.h"

Go to the source code of this file.

Classes

class  pw::NestedJsonArray
 
class  pw::NestedJsonObject
 
class  pw::JsonValue
 
class  pw::JsonArray
 
class  pw::JsonObject
 
class  pw::JsonBuilder
 
class  pw::JsonBuffer< kMaxSize >
 

Namespaces

namespace  pw
 Provides basic helpers for reading and writing UTF-8 encoded strings.
 

Detailed Description

The pw_json module provides utilities for interacting with JSON. JSON is a structured data format that supports strings, integers, floating point numbers, booleans, null, arrays, and objects (key-value pairs).

pw::JsonBuilder is a simple, efficient utility for serializing JSON to a fixed-sized buffer. It works directly with the JSON wire format. It does not support manipulation of previously serialized data.

All JsonBuilder functions are constexpr, so may be used in constexpr and constinit statements.