An adapter between JSON-P and the native MongoDB JSON representation