Can i use external jsons in my code playground? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can i use external jsons in my code playground?

29th Jun 2018, 7:03 PM
Rian Da Silva
Rian Da Silva - avatar
5 Answers
+ 24
Of course. If you have a specific question about it, post it here.
29th Jun 2018, 8:39 PM
Igor Makarsky
Igor Makarsky - avatar
+ 17
You can't use PHP for it. Https is not allowed at the Code Playground. But you can use Javascript, it works fine.
2nd Jul 2018, 4:38 PM
Igor Makarsky
Igor Makarsky - avatar
+ 11
use ajax or fetch api instead of php ...
2nd Jul 2018, 5:21 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 2
Thank you Igor, I tried to use file_get_contents to retrieve some data from a json file served by GitHub but I get an error because of https can you help me figure it out?
29th Jun 2018, 9:08 PM
Rian Da Silva
Rian Da Silva - avatar
+ 1
Nice, thank you for the advice
2nd Jul 2018, 6:28 PM
Rian Da Silva
Rian Da Silva - avatar