I am using jquery.sheet plugin which accepts JSON. The JSON format is:
[
{ //repeats
metadata: {
columns: Column_Count,
rows: Row_Count,
title: ''
},
data: {
r{Row_Index}: { //repeats
c{Column_Index}: { //repeats
value: '',
style: '',
width: 0,
cl: {Classes used for styling}
}
}
}
}
];
A simple example may be:
[
{
metadata: {
columns: 1,
rows: 1,
title: 'Private Limited'
},
data: {
r0: {
c0: {
value: 'A',
style: '',
width: 0
}
}
}
}
]
I need to parse this JSON in Java? I know I can use the google's gson library to parse. But I don't know how to do this.