45 m_writer.beginObject();
50 m_writer.writeKey(str);
51 m_writer.beginObject();
69 m_writer.writeKey(name);
70 m_writer.beginArray();
72 ~Array() ARCANE_NOEXCEPT_FALSE
84 enum class FormatFlags
95 JSONWriter(FormatFlags format_flags = FormatFlags::Default);
107 void write(
StringView key, std::string_view v);
109 void write(
StringView key,
long long v) { _writeInt64(key,
static_cast<Int64
>(v)); }
110 void write(StringView key,
long v) { _writeInt64(key,
static_cast<Int64
>(v)); }
111 void write(StringView key,
int v) { _writeInt64(key,
static_cast<Int64
>(v)); }
112 void write(StringView key,
unsigned long long v) { _writeUInt64(key,
static_cast<UInt64>(v)); }
113 void write(StringView key,
unsigned long v) { _writeUInt64(key,
static_cast<UInt64>(v)); }
114 void write(StringView key,
unsigned int v) { _writeUInt64(key,
static_cast<UInt64>(v)); }
115 void write(StringView key, Real v);
116 void write(StringView key, StringView str);
117 void writeIfNotNull(StringView key,
const String& str);
118 void write(StringView key, Span<const Int32> view);
119 void write(StringView key, Span<const Int64> view);
120 void write(StringView key, Span<const Real> view);
124 StringView getBuffer()
const;
130 void _writeInt64(StringView key, Int64 v);
131 void _writeUInt64(StringView key, UInt64 v);