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

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:
[code]
{"data":"abc","name":"Diago","Age":23}
[/code]
Table with 2 columns , col1 key, col2: value
[code]
Sample Table Out Put with key:value pair as row
----------------------
| key | value |
----------------------
| data | abc |
| name | Diago |
| Age | 23 |
----------------------
[/code]
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:
[code]
{"data":"abc","name":"Diago","Age":23}
[/code]
Table with 2 columns , col1 key, col2: value
[code]
Sample Table Out Put with key:value pair as row
----------------------
| key | value |
----------------------
| data | abc |
| name | Diago |
| Age | 23 |
----------------------
[/code]
This discussion has been closed.
Replies
Allan