wrap it in [] like:
<span class="q">[{"job_Description":"My Job","job_Notes":"My jobs notes are here."}]</span>
<div><span class="gmail_quote">On 12/17/07, <b class="gmail_sendername">
jforth</b> <<a href="mailto:jforth@gmail.com">
jforth@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm running php
5.2.5
in firebug I get :
invalid label
{"job_Description":"My Job","job_Notes":"My jobs notes are here."}
On Dec 12, 1:38 pm, "Benjamin Sterling"
<<a href="mailto:benjamin.sterl...@kenzomedia.com">
benjamin.sterl...@kenzomedia.com</a>> wrote:
> Two quick questions:
> what version of php are you running? I believe that zend only supports
> php5, but I could be wrong on that.
>
> In firebug, what is being returned in the "response" tab?
>
> On 12/12/07, jforth <<a href="mailto:jfo...@gmail.com">
jfo...@gmail.com</a>> wrote:
>
>
>
>
>
> > I'm trying to test something here and having issues getting it to
> > work.
>
> > here's my jquery script : // I should get an alert object if it works?
> > but in firebug all I get is invalid label.
>
> > var url = "<a href="http://127.0.0.1/projects/micro-printing.com/projects/">
http://127.0.0.1/projects/micro-printing.com/projects/</a>> > micro-server/index.php/client_api/test?callback=?";
> > $.getJSON(url,
> > function(data){
> > alert(data);
> > });
>
> > heres the json that I'm getting using zend_json:
>
> > {"job_Description":"My Job","job_Notes":"My jobs notes are here."}
>
> > and here's the php in case it helps
>
> > $json = new Zend_Json();
> > $job_data = array(
> > 'job_Description' => 'My Job' ,
> > 'job_Notes' => 'My jobs notes are here.');
>
> > echo $json->encode($job_data);
>
> --
> Benjamin Sterling
http://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjaminsterling.com</blockquote></div>
<br clear="all">
--
Benjamin Sterling
<a href="http://www.KenzoMedia.com">
http://www.KenzoMedia.com</a><a href="http://www.KenzoHosting.com">
http://www.KenzoHosting.com</a><a href="http://www.benjaminsterling.com">
http://www.benjaminsterling.com</a>