1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

Ladybird: Add a helper to deserialize a JSON string to an NSDictionary

The steps here are a tad verbose, and will be needed several times in
the Inspector window.
This commit is contained in:
Timothy Flynn 2023-09-13 11:57:54 -04:00 committed by Andrew Kaster
parent 507dea5fdd
commit 33b006f157
2 changed files with 19 additions and 0 deletions

View file

@ -19,6 +19,8 @@ namespace Ladybird {
String ns_string_to_string(NSString*);
NSString* string_to_ns_string(StringView);
NSDictionary* deserialize_json_to_dictionary(StringView);
Gfx::IntRect ns_rect_to_gfx_rect(NSRect);
NSRect gfx_rect_to_ns_rect(Gfx::IntRect);