>
>cContent = "{ " + Chr(34) + "username" + Chr(34) + " : " + Chr(34) + this.cUser + Chr(34) + ", " + Chr(34) + "password" + Chr(34) + " : " + Chr(34) + this.cPasswort + Chr(34) + "}"
>
Those chr(34) would trip me up too often, so I'd code at least something like
cContent = "{ " + ["username"] + " : " + StreamStr( this.cUser ) + ", " +["password"] + " : " + StreamStr( this.cPasswort ) + "}"
Even better is a small library with functions/methods like JSONValue(key, value), JSONStr(Key,value) and so on -
but the relatively slow function calling of vfp compared to statically typed langs or even partially JITted dynamic ones makes that
questionable for sites with taxed CPU load if coded with no breaking of DRY coding ;-)