title: Quick AJAX / JSON security question
body: <p>In a form I have I want to be able to check whether the intended email address or username is unique as part of the validation process</p>
  
  <p>I have created a JSON file with PHP from database data to work with JavaScript validation but the problem is that anybody can see the JSON file</p>
  
  <p>Is there a way around this and still be able to use this method?</p>