Login

Snippets by roxeteer

Snippet List

JSON Decimal encoder

Python json module or simplejson don't support Decimals out of the box. Here's an encoder that casts Decimals into floats and then displays them in desired format.

  • json
  • decimal
  • encoder
Read More

roxeteer has posted 2 snippets.