Bugs / Problems

invalid json

For this particular api query to acs5 I receive invalid json. I confirmed this with jslint. I suspect one of the fields aren't escaping properly or something. http://api.census.gov/data/2012/acs5/profile?get=DP04_0088E,DP02_0100E,DP02_0104E,DP02_0105E,DP02_0106E,DP02_0107E,DP02_0108E,DP02_0109E,DP02_0111E,DP02_0112E,DP02_0113E,DP03_0019E,DP03_0020E,DP03_0021E,DP03_0022E,DP03_0023E,DP03_0024E,DP03_0025E,DP02_0090E,DP03_0004E,DP03_0005E,DP03_0006E&for=place:*&in=state:*&key={key} ...more »

Submitted by (@jporter)
6 comments

Voting

1 vote
1 up votes
0 down votes
Active

Bugs / Problems

invalid json

For this particular api query to acs5 I receive invalid json. I confirmed this with jslint. I suspect one of the fields aren't escaping properly or something. http://api.census.gov/data/2012/acs5/profile?get=DP04_0088E,DP02_0100E,DP02_0104E,DP02_0105E,DP02_0106E,DP02_0107E,DP02_0108E,DP02_0109E,DP02_0111E,DP02_0112E,DP02_0113E,DP03_0019E,DP03_0020E,DP03_0021E,DP03_0022E,DP03_0023E,DP03_0024E,DP03_0025E,DP02_0090E,DP03_0004E,DP03_0005E,DP03_0006E&for=place:*&in=state:*&key={key} ...more »

Submitted by (@jporter)
6 comments

Voting

1 vote
1 up votes
0 down votes
Active

API Technical Discussions

JSONP Callback

The jsonp callback should be 'callback' not 'jsonp' there is no reason you can't have both, but almost every single site that uses jsonp uses callback as the parameter, using something weird prevents people from easily making apps.

Submitted by (@calvin.metcalf)
2 comments

Voting

4 votes
4 up votes
0 down votes
Active

API Technical Discussions

JSONP Callback

The jsonp callback should be 'callback' not 'jsonp' there is no reason you can't have both, but almost every single site that uses jsonp uses callback as the parameter, using something weird prevents people from easily making apps.

Submitted by (@calvin.metcalf)
2 comments

Voting

4 votes
4 up votes
0 down votes
Active

API Technical Discussions

HTTP Get returning all null values

Hi,

I am doing a http get http://api.census.gov/data/2010/sf1?key=user key&get=P0010001,NAME&for=state:* and this succeeds with response of 200, but the JSON elements are null. This same call used to work a few days back, now I get the following: ["P0010001","NAME","state"],["null","null","null"],["null","null","null"],...

Please help.

Thank You.

Submitted by
1 comment

Voting

-2 votes
0 up votes
2 down votes
Active

API Technical Discussions

HTTP Get returning all null values

Hi,

I am doing a http get http://api.census.gov/data/2010/sf1?key=user key&get=P0010001,NAME&for=state:* and this succeeds with response of 200, but the JSON elements are null. This same call used to work a few days back, now I get the following: ["P0010001","NAME","state"],["null","null","null"],["null","null","null"],...

Please help.

Thank You.

Submitted by
1 comment

Voting

-2 votes
0 up votes
2 down votes
Active