Parse json
Fixes web2py/web2py#2121
from ..adapters.google import GoogleDatastore
-from .base import BasicParser
+from .base import BasicParser, JSONParser
from . import parsers, for_type
@parsers.register_for(GoogleDatastore)
-class GoogleDatastoreParser(BasicParser):
+class GoogleDatastoreParser(BasicParser, JSONParser):
@for_type('id')
def _id(self, value):
return value
