Skip to content

Conversation

@lemnik
Copy link
Contributor

@lemnik lemnik commented Oct 20, 2025

Goal

Allow bulk extraction of JSON data from a parsed JSON collection structure based on the JsonCollectionPath syntax.

Design

Introduced JsonDataExtractor as a sealed class with implementations for the various types of data extraction we want to run within the SDK. Each of the extractors "stringify" their data before sending it to an arbitrary output function.

  • LiteralPathExtractor extract all of the data for a given path without processing it
  • RelativeAddressExtractor calculate and emit the hex-string for the relative address of an arbitrary stack frame
  • RegexExtractor either filter based on a regex, or extract groups from the source content
  • FilterExtractor (the most complex) filter elements by requiring some number of conditions be met

Testing

New unit tests were added for each of the extraction types.

@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1849.13 1603.0
arm64_v8a 659.71 409.86
armeabi_v7a 602.38 352.52
x86 729.33 483.57
x86_64 704.76 454.9

Generated by 🚫 Danger

@lemnik lemnik marked this pull request as ready for review October 22, 2025 07:34
@lemnik lemnik requested a review from YYChen01988 as a code owner October 22, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants