Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. header('Access-Control-Allow-Origin: *');
  3. header ('Content-Type: application/json');
  4. $jsondata = file_get_contents("credits.json");
  5. print_r(json_encode($jsondata));
  6. ?>
  7.  
  8. {
  9. "credits": [
  10. {
  11. "creditId": 123,
  12. "id": 1,
  13. "client": "Peter",
  14. },
  15. {
  16. "creditId": 789,
  17. "id": 2,
  18. "client": "Jonas",
  19. }
  20. ]
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement