Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Single Object json to rows with key as column1 and value as col2

$
0
0
Hello,
Is it possible with datatables to convert a single object json returned from server to rows of a table with key being column1 and value as column2.

Single Object Json from server:
{"data":"abc","name":"Diago","Age":23}

Table with 2 columns , col1 key, col2: value
 
Sample Table Out Put with key:value pair as row
----------------------
| key    |    value  |
----------------------
| data   |   abc     |
| name   |   Diago   |
| Age    |   23      |
----------------------

Viewing all articles
Browse latest Browse all 1816

Trending Articles