JSON Array Loading

JSON Array Loading

I have a very simple module where I want to load my preferences from a database into the input boxes of a form. The $.getJSON seems to work fine in that it returns the following...
  1. [{"pref_ID":1,"pref_CoName":"WK Design Group","pref_CoAddress":"351 California Street, Suite 3","pref_CoCity":"San Francisco","pref_CoState":"CA","pref_ZipCode":"94104","pref_Phone":"415-537-9400","pref_Fax":"415-863-4209","pref_FormNum":"WKdg Form 1-1","pref_FormDate":"2000-03-20","pref_FormComment":"A 1.5% per month charge will be added to all accounts not paid within 30 days.","pref_CoInfo":"K","pref_AdInfo":"R","pref_InInfo":"K","pref_HdInfo":"B","pref_NoAgng":"Y","pref_AdFee":"Y","pref_NoSqft":"Y","pref_AdminMsg":"Launch Party Sep 17, 2013","pref_ExpireDate":"2013-09-17"}]

The code for the $.getJSON is...

  1. $.get( 'files_json/get_Prefs.php', 'limit=1', loadPrefs);
    function loadPrefs(data) {
        var prefs = $.parseJSON(data);
        document.form_edit.pref_CoName.value = prefs.pref_CoName;
    }




But, when the code runs I get a pref.pref_CoName undefined error.



What am I missing???

jdadwilson