Had to rewrite the alg_data_to_json functions to return a Value instead of a Document.  Still needs access to a Document in order to get an Allocator.