The collections API interface is dumping both the asssociative array's named indexes and the raw indexes ("0", "1", "2"). This can be seen as the values for "0" & "collection_id", "1" & "collection_name", etc. are the same.
Additionally, it is only displaying 1 citation_id as part of the collection. It should output a list of all citations in the collection. The datatypes for ids should also be integers (e.g., 45 instead of "45").
A cleaned up output would look like:
{"collection_id":45,
"collection_name":"SEP independence-large-cardinals",
"user_id":105,
"submitter":"tgennaro",
"owner":"sep",
"citations":[12,45,67,954,22]}
The collections API interface is dumping both the asssociative array's named indexes and the raw indexes ("0", "1", "2"). This can be seen as the values for "0" & "collection_id", "1" & "collection_name", etc. are the same.
http://pubs.cogs.indiana.edu/collection/45.json
Additionally, it is only displaying 1 citation_id as part of the collection. It should output a list of all citations in the collection. The datatypes for ids should also be integers (e.g., 45 instead of "45").