[jQuery] Re: non well-formed

2009-11-18 Thread Dave Methvin
> My Servlet return json string generated with json-lib... for example: > {"descrizione":"Questa è la descrizione del > computer","disponibile":false,"id":1,"nome":"Computer","prezzo": > 123.456} Is this just a formatting issue, or is there really a newline in the string "Questa è la descrizione d

Re: [jQuery] Re: non well-formed

2009-11-18 Thread Michael Geary
false (and true) and numbers are valid JSON values. You *can* put them in quotes, but that changes their meaning: they become strings instead of boolean or numeric values. It's true that you would want to use the properties of the msg object such as msg.descrizione, but it's also fine to call aler

[jQuery] Re: non well-formed

2009-11-18 Thread Carlos Alberto
I think you must encapsulate "false" and numbers in quotes... and treat msg like an object (msg.descrizione, msg. disponibile... etc.) On 18 nov, 17:43, sportfantasy wrote: > Hi, > > I'm italian developer. I have a problem. I develope my simple web > application using jquery for ajax call. > >