mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
AK: Allow assigning a value to a specific index in a JsonArray
This commit is contained in:
parent
74e9a892e3
commit
4babf6e4e1
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ public:
|
||||||
|
|
||||||
void clear() { m_values.clear(); }
|
void clear() { m_values.clear(); }
|
||||||
void append(JsonValue value) { m_values.append(move(value)); }
|
void append(JsonValue value) { m_values.append(move(value)); }
|
||||||
|
void set(int index, JsonValue value) { m_values[index] = move(value); }
|
||||||
|
|
||||||
template<typename Builder>
|
template<typename Builder>
|
||||||
typename Builder::OutputType serialized() const;
|
typename Builder::OutputType serialized() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue