function to make corpus attributes from JSON document headers