marshal documents from JSON