def create_documents(
        self,
        texts: list[dict],
        convert_lists: bool = False,
        metadatas: Optional[list[dict]] = None,
    ) -> list[SplitterDocument]:
        """Create documents from a list of json objects (dict)."""
        _metadatas = metadatas or [{}] * len(texts)
        documents = []
        for i, text in enumerate(texts):
            for chunk in self.split_text(
                json_data=text, convert_lists=convert_lists
            ):
                metadata = copy.deepcopy(_metadatas[i])
                new_doc = SplitterDocument(
                    page_content=chunk, metadata=metadata
                )
                documents.append(new_doc)
        return documents
Create documents from a list of json objects (dict).
py/shared/utils/splitter/text.py