The TABLETOJSON() function converts a table with values into text in JSON format.
=TABLETOJSON(Range)
The TABLETOJSON() function is easy to use. You just need to select a table or specify any range of cells with values and Excel (Calc) will automatically return text in "JSON" format:
=TABLETOJSON(Range)
We will get the following result:
In this example, the following values are used:
You can use the function TABLETOJSON() by installing the extension YLC Utilities.
After that, this function will be available in all files opened in Excel (LibreOffice Calc).