mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
AK: Allow assigning a value to a specific index in a JsonArray
This commit is contained in:
parent
74e9a892e3
commit
4babf6e4e1
Notes:
sideshowbarker
2024-07-18 21:03:59 +09:00
Author: https://github.com/trflynn89
Commit: 4babf6e4e1
Pull-request: https://github.com/SerenityOS/serenity/pull/5947
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