Skip to content
Snippets Groups Projects
jsonresponse.php 237 B
Newer Older
<?php header('Content-Type: application/json');
  $jsonObj = array(
    'elementOne' => 'Its a string',
    'numberElement' => -1,
    'booleanElement' => True,
    'elementTwo' => 'another string!'
  );
  echo json_encode($jsonObj);
?>