-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support empty array unmarshaling (#27)
- Fixes Empty array unmarshaling fails #26 with a partial json.Unmarshal step - Adds changes from Create Marshal and Unmarshal benchmarks #32: - Clarify the names of some test jsonapi bodies (ones with a top-level meta object) - Add Marshal and Unmarshal benchmarks The addition of a second json.Unmarshal in the (*document).UnmarshalJSON has actually reduced the time spent by Unmarshal, as we can determine whether there is more than one primary data object earlier in the process, without having to re-try the jsonapi.Unmarshal on the entire document.
- Loading branch information
Showing
6 changed files
with
263 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.