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

Fixed "json: error calling MarshalJSON for type json.RawMessage" #61

Merged
merged 1 commit into from
Mar 5, 2014

Conversation

dukex
Copy link
Contributor

@dukex dukex commented Feb 28, 2014

When I try:

out, err := SearchRequest(true, "github", "", qry, "", 0)
if err != nil {
  t.Error(err)
}

_, err = json.Marshal(out.Hits.Hits)

I receive:

--- FAIL: TestSearchResultToJSON (0.01 seconds)
  search_test.go:48: json: error calling MarshalJSON for type json.RawMessage: unexpected end of JSON input
FAIL
exit status 1

My commit fix it!

mattbaird added a commit that referenced this pull request Mar 5, 2014
Fixed "json: error calling MarshalJSON for type json.RawMessage"
@mattbaird mattbaird merged commit d2bd63c into mattbaird:master Mar 5, 2014
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