javascript - Send array of values in parameter in $.getJson -
javascript - Send array of values in parameter in $.getJson -
i have create next api call:
https://www.googleapis.com/freebase/v1/topic/m/04136kj? filter=/common/topic/article&filter=/common/topic/notable_for &filter=/common/topic/notable_types&filter=/type/object/type
notice here have send 4 values filter
. using next json params field .$getjson
:
var params = { // key , filter "key": "my_api_key", "filter": ["/common/topic/article", "/common/topic/notable_for", "/common/topic/notable_types", "/type/object/type"] };
the problem here is, using array encodes url filter[]=
, not filter=
. causes no filter applied api call. how can prepare this?
javascript json api youtube freebase
Comments
Post a Comment