Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common: add even more json utility functions #12652

Merged
merged 2 commits into from Mar 22, 2024

Conversation

iwubcode
Copy link
Contributor

@iwubcode iwubcode commented Mar 20, 2024

This adds some more utility functions to help with writing picojson logic. ReadStringFromJson and ReadBoolFromJson were added to match the existing numeric capability. They all now return a optional as that was more flexible than passing in the default.

Similarly, I updated ToJsonArray to support any array type that the json library natively supports (strings or bools).

@iwubcode iwubcode force-pushed the json_util_update branch 2 times, most recently from 6e3a933 to 7fb2d21 Compare March 20, 2024 04:14
@iwubcode iwubcode changed the title Common: add json utility functions Common: add even more json utility functions Mar 20, 2024
…ve it return an optional, this provides the caller with more flexibility
…FromJson' to match 'ReadNumericFromJson' functionality for other data types, similarly support other data types for 'ToJsonArray'
@AdmiralCurtiss AdmiralCurtiss merged commit f535b61 into dolphin-emu:master Mar 22, 2024
11 checks passed
@iwubcode iwubcode deleted the json_util_update branch March 22, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants