j2labs/structures — pull request #87 by brianknox (2012-08-21 13:07:59+00:00)
Title: fix for ujson

As far as I can tell ujson.dumps does not support sort_keys as an option and fails. I added a new base.dumps to base.py that detects if ujson is in use or not and handles things appropriately. I then refactored all the calls to json.dumps in model.py to use dumps from base. All tests still passing and now appears to work properly with ujson.