bolkedebruin commented on issue #3604: Mapbox Visualizatuion error cause by "is 
not JSON serializable"
URL: 
https://github.com/apache/incubator-superset/issues/3604#issuecomment-351935364
 
 
   ```
   
   from superset.connectors.druid.models import DruidMetric
   import json
   from superset.utils import base_json_conv
   
   m = DruidMetric()
   json.dumps(m, default=base_json_conv)
   
   'null'
   
   ```
   
   DruidMetric just needs a `default` method from JSONEncoder.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to