Read the complete article on how to convert a TXT file to JSON in Python: https://blog.aspose.com/2022/06/10/convert-txt-to-json-in-python/
Last active
September 25, 2023 09:27
-
-
Save aspose-com-gists/afd92ac470817f2e5a6102a777cf25f4 to your computer and use it in GitHub Desktop.
Convert TXT to JSON in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jpype | |
import asposecells | |
jpype.startJVM() | |
from asposecells.api import Workbook | |
# load TXT file | |
workbook = Workbook("input.txt"); | |
# save as JSON | |
workbook.Save("Output.json"); | |
jpype.shutdownJVM() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment