Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Formated, doced. Also fixed few minor bugs. #5

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

Merged
taowen merged 1 commit into json-iterator:master from superfashi:master
Jan 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/json-iterator/go)

jsoniter (json-iterator) is fast and flexible JSON parser available in [Java](https://github.com/json-iterator/java) and [Go](https://github.com/json-iterator/go)

# Why jsoniter?
Expand Down Expand Up @@ -37,7 +39,7 @@ import "github.com/json-iterator/go"
iter := ParseString(`[0, [1, 2], [3, 4], 5]`)
count := 0
for iter.ReadArray() {
iter.skip()
iter.Skip()
count++
}
fmt.Println(count) // 4
Expand Down
4 changes: 2 additions & 2 deletions any_test.go
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package jsoniter

import (
"testing"
"fmt"
"testing"
)

func Test_get_from_map(t *testing.T) {
Expand Down Expand Up @@ -36,7 +36,7 @@ func Test_is_null(t *testing.T) {
any := Any{val: []interface{}{
1, 2, 3,
}}
if any.IsNull() != false {
if any.IsNil() != false {
t.FailNow()
}
}
Expand Down
3 changes: 1 addition & 2 deletions feature_adapter.go
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package jsoniter

import "io"

// adapt to json/encoding api

// Unmarshal adapts to json/encoding APIs
func Unmarshal(data []byte, v interface{}) error {
iter := ParseBytes(data)
iter.Read(v)
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /