'how to display json vertically (as columns) not horizontally (as rows)

I have this json {"heat":"jimmy","mavs":"dirk"}

i want to display them as a table with 2 rows using jqgrid.

Team Player
Heat Jimmy
Mavs Dirk

normally the display will be like this with jqgrid

Heat Mavs
Jimmy Dirk


Solution 1:[1]

Here you can use Object.entries() method for this JSON structure if you want to use key as first td for row and value as second one.

Here you can see nice example, how to do it.

Welcome to comment for additional help.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 dmitryprogrammer