Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
remove simplejson
Browse files Browse the repository at this point in the history
  • Loading branch information
thefunny42 committed Jan 9, 2018
1 parent cd954d5 commit 290f9c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions CHANGES.txt
Expand Up @@ -4,8 +4,7 @@ Changes
3.0.2 (unreleased)
==================

- Nothing changed yet.

- Remove dependency on simplejson.

3.0.1 (2018-01-05)
==================
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -57,7 +57,6 @@ def read(*rnames):
'grokcore.view',
'martian',
'setuptools',
'simplejson',
'zope.component',
'zope.interface',
'zope.publisher',
Expand Down
6 changes: 2 additions & 4 deletions src/grokcore/json/components.py
Expand Up @@ -21,8 +21,7 @@

from zope.publisher.browser import BrowserPage
from zope.publisher.publish import mapply

import simplejson
import json
import grokcore.view
from zope.interface import implementer

Expand All @@ -36,5 +35,4 @@ def __call__(self):
method = getattr(self, view_name)
method_result = mapply(method, (), self.request)
self.request.response.setHeader('Content-Type', 'application/json')
return simplejson.dumps(method_result)

return json.dumps(method_result)

0 comments on commit 290f9c2

Please sign in to comment.