Which method is more effective for handling JSON data, especially when working with IONIC?
var quizs = [
{id: 1,
question: '1.jpg',
desc: 'What color is displayed here',
answer: 'blue, green, orange'}
]
or this
var quizs = [
{id: 1,
question: '1.jpg',
desc: 'What color is displayed here',
answer: [{
color: 'blue',
color: 'green',
color: 'orange'}]
]
The repetition in the second example may be excessive.