My data resembles JSON, with columns and names listed:
columns: [
{
allowNull: false,
autoEnterSubType: 0,
autoEnterType: 2,
creationOrderIndex: 0,
dataType: 4,
databaseSequenceName: "seq_admintraties_adminratie_id",
flags: 1,
name: "administratie_id"
},
{
allowNull: true,
creationOrderIndex: 4,
dataType: 12,
length: 50,
name: "database_naam"
},
{
allowNull: true,
creationOrderIndex: 1,
dataType: 12,
length: 50,
name: "naam"
},
{
allowNull: true,
creationOrderIndex: 2,
dataType: 12,
length: 50,
name: "omschrijving"
},
{
allowNull: true,
creationOrderIndex: 3,
dataType: 12,
length: 50,
name: "organisatie_naam"
}
],
name: "administraties",
tableType: 0
Although it's not actually in JSON format.
I aim to parse this data using JavaScript without resorting to complicated splitting methods. Any ideas on a simpler approach?