Use 'in' testing instead of 'try/catch' for checking for existance of dict keys.
Added support for specifying the number of float digits when serializing as json usin the ujson library.