SyntaxFix
Write A Post
Hire A Developer
Questions
I think you should mention dataType: 'json' in ajax config and to access that value:
dataType: 'json'
data[0].name