Skip to content

v0.12.7 Enhanced JSON and resolve functionality#1315

Open
citkane wants to merge 44 commits into
webview:masterfrom
citkane:Enhanced-JSON-usage
Open

v0.12.7 Enhanced JSON and resolve functionality#1315
citkane wants to merge 44 commits into
webview:masterfrom
citkane:Enhanced-JSON-usage

Conversation

@citkane
Copy link
Copy Markdown
Contributor

@citkane citkane commented Jun 18, 2025

This release simplifies the use of JSON strings and returning values to the JS frontend for the user.

Added

  • json_parse has been added to the public C API.
  • webview_return public C API has been expanded to include webview_return_int, webview_return_float and webview_return_bool.

Changed

  • Users can now pass string, bool, number and JSON strings directly into webview_return methods without the need to quote or double quote them.

Security

  • Sanitising checks for input strings is managed in the frontend JS (using regex and a sandboxed iframe). Executable code, HTML scripts and URLEncoded scripts are rejected.

Depends on PR's

citkane added 30 commits June 12, 2025 15:00
…ew_cc and complete define/implement refactoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant