oduwsdl / MemGator

A Memento Aggregator CLI and Server in Go
https://memgator.cs.odu.edu/api.html
MIT License
55 stars 11 forks source link

MemGator produces invalid JSON in the CDXJ interface #71

Closed machawk1 closed 8 years ago

machawk1 commented 8 years ago

For example, when I query my local instance at http://localhost:1208/timemap/cdxj/http://google.com, one of the lines returned is

20160414201444 {"uri": "http://web.archive.org/web/20160414201444/http://matkelly.com/", "rel"="last memento", "datetime"="Thu, 14 Apr 2016 20:14:44 GMT"}

Note the mixed use of : for assigning attributes and = for other assignments. The JSON is invalid. This does not occur with the json endpoint, only CDXJ from what I can see.