I want to add upon T.J's answer, since I faced this problem and could not figure it out, you should also make it a practice to use double quotes "" instead of single quotes '' when it comes to json, lest you face the same problem in future.Have a good day...