-1

I want to parse this {"success":"true","data":[{"id":"15","clubid":"20","priority":"1"}] and i want to parse it so i can get values Help me in this

Blu
  • 3,926
  • 6
  • 35
  • 64

2 Answers2

1

Your JSON isn't valid, anyway if it is only a typo(which is possible), JSON.parse(string) is the function you're looking for!

Niccolò Campolungo
  • 11,350
  • 3
  • 32
  • 38
1

You won't even need to force a Parse if your JSON is valid.

If you have an object assigned to this data, for example:

var data = {}

You could most probably already access your data by referencing:

data.success
Bjorn 'Bjeaurn' S
  • 3,691
  • 2
  • 16
  • 26