Ask Your Question

Revision history [back]

how to flatten the json data

Suppose i have data in the format:

{Data:{col1:value1,col2:value2,col3:value3}}

I want to get the data in the following format:

{col1:value1,col2:value2,col3:value3}

I want to eliminate the extra field Data.How to achieve this?

how to flatten the json data

Suppose i have data in the format:

{Data:{col1:value1,col2:value2,col3:value3}}

{Data:{col1:value1,col2:value2,col3:value3}}

I want to get the data in the following format:

{col1:value1,col2:value2,col3:value3}

{col1:value1,col2:value2,col3:value3}

I want to eliminate the extra field Data.How to achieve this?