AK+Everywhere: Store JSON strings as String

This commit is contained in:
Timothy Flynn 2025-02-17 13:21:07 -05:00 committed by Tim Flynn
commit bc54c0cdfb
Notes: github-actions[bot] 2025-02-21 00:29:21 +00:00
33 changed files with 163 additions and 152 deletions

View file

@ -57,9 +57,9 @@ void RootActor::handle_message(StringView type, JsonObject const& message)
for (auto const& actor : devtools().actor_registry()) {
if (is<DeviceActor>(*actor.value))
response.set("deviceActor"sv, actor.key);
response.set("deviceActor"sv, MUST(String::from_byte_string(actor.key)));
else if (is<PreferenceActor>(*actor.value))
response.set("preferenceActor"sv, actor.key);
response.set("preferenceActor"sv, MUST(String::from_byte_string(actor.key)));
}
send_message(move(response));