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

Support JSON Path for decoding #250

Merged
merged 1 commit into from Nov 28, 2022
Merged

Support JSON Path for decoding #250

merged 1 commit into from Nov 28, 2022

Conversation

goccy
Copy link
Owner

@goccy goccy commented Jun 15, 2021

Add a new API json.CreatePath(string) (*json.Path, error) .
json.Path type has some methods

  • Extract: extract json structure from input data
  • Unmarshal: extract and decode from input data
  • Get: extract and assign value from input value

@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2021

Codecov Report

Merging #250 (fcb21f9) into master (d7c473e) will decrease coverage by 2.97%.
The diff coverage is 32.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #250      +/-   ##
==========================================
- Coverage   80.02%   77.04%   -2.98%     
==========================================
  Files          52       55       +3     
  Lines       17581    18776    +1195     
==========================================
+ Hits        14069    14466     +397     
- Misses       2944     3674     +730     
- Partials      568      636      +68     

@goccy goccy marked this pull request as ready for review November 28, 2022 18:58
@goccy goccy merged commit 9b472af into master Nov 28, 2022
@goccy goccy deleted the feature/json-path branch November 28, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants