Skip to content

Extends encoding/json to return unmarshal errors located with JSON Pointer (RFC 6091).

License

Notifications You must be signed in to change notification settings

dolmen-go/jsonptrerror

Repository files navigation

jsonptrerror - Extends encoding/json with errors reported as JSON Pointer (RFC 6901)

GoDoc Travis-CI Codecov Go Report Card

This package is a wrapper around the standard encoding/json package to improve the reporting of location for unmarshalling errors: UnmarshalTypeError are enhanced to also include a JSON Pointer (see RFC6901) indicating the location of the error: see jsonptrerror.UnmarshalTypeError.

Status

The aim is code coverage of 100%. Use go coverage tools and consider any code not covered by the testsuite as never tested and full of bugs.

See latest coverage report at codecov.io.

License

Copyright 2017-2022 Olivier Mengué

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http:https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Extends encoding/json to return unmarshal errors located with JSON Pointer (RFC 6091).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published