Remove python json depedency for people using python <2.6

This commit is contained in:
Patrick Speiser
2012-09-30 18:35:02 +02:00
parent 350c99fb1b
commit ab523fd009

View File

@@ -29,7 +29,6 @@ from headphones import logger, searcher, db, importer, mb, lastfm, librarysync
from headphones.helpers import checked, radio,today
import lib.simplejson as simplejson
import json
@@ -508,7 +507,7 @@ class WebInterface(object):
'iTotalRecords':totalcount,
'aaData':rows,
}
s = json.dumps(dict)
s = simplejson.dumps(dict)
cherrypy.response.headers['Content-type'] = 'application/json'
return s
getArtists_json.exposed=True