bson-aware json functions (dump, dumps, load, loads)