Error using TWITTER search api


#1

I am trying to get the data from twitter search api for a specific time period and for a specific keyword.
But while converting bulk of data from JSON to array format, it is giving error of the kind ValueError (kind of json formatting error) and error is not uniform.
The api just work fine when I tried to fetch a single tweet on a request to twitter.
Following is the url i am using to fetch the data

https://api.twitter.com/1.1/search/tweets.json?q=%23freebandnames&since_id=24012619984051000&max_id=250126199840518145&result_type=mixed&count=4

So how to resolve this issue. Any kind of help will be great.
TIA.