Shino1024 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

BigQuery v2 JsonObject is not well defined #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to use the Go API client for BigQuery to stream data into a table, 
we have to create a InsertAllRequest that wants a "JsonObject" which is just an 
empty struct. Maybe switch the requirement to an interface{} that can be 
serialized to JSON? 

Original issue reported on code.google.com by prat...@condorcapital.com on 2 Jan 2014 at 9:13

GoogleCodeExporter commented 9 years ago
This was an easy change to make:

https://code.google.com/r/ox-google-api-go-client/source/detail?r=a7868ed0ae132b
811b6d459d7806fc0624ff27f1

Please incorporate this into the official repo so that I can whack my clone.

Original comment by o...@getlantern.org on 12 Mar 2014 at 3:05

GoogleCodeExporter commented 9 years ago
Well it's now map[string]JsonValue, which seems only a little better.  I think 
doing either []byte or interface{} makes the most sense.

Original comment by ch...@pushbullet.com on 13 Oct 2014 at 7:25

GoogleCodeExporter commented 9 years ago
Successfully auto-migrated to github:
https://github.com/google/google-api-go-client/issues/52
Closing.

Original comment by gmle...@google.com on 8 Apr 2015 at 6:06