Hmmm... unfortunately I can't really support 4.5. You could look at the code in the v5 a4d.json library and try that, maybe this bug was fixed.
On Feb 10, 2014, at 4:09 PM, Norbert Pfaff <[email protected]> wrote: > Sorry I forgot > > A4D 4.5 r1 > > Grüße/regards > Norbert > > > Norbert Pfaff > Mannheimer Str.24b > 67098 Bad Dürkheim > > > > Am 10.02.2014 um 16:06 schrieb Norbert Pfaff <[email protected]>: > >> Hi, >> >> I have code to fill a list of dates per month. I have a list of all dates in >> the year. >> Now I write out the month start a array and look through the yeardates if >> the date is right for the month. >> Problem is, that if there are no dates for that month the result for the >> json is not correct. >> >> perhaps better you look at the code >> >> for ($i; 1; 12) >> $json->startObject >> $json->add("month"; $monthName{$i}) >> $json->startArray("clearances") >> for ($j; 1; $size) >> $date:=$arTermin{$j} >> If(Month of($date)=$monthNr{$i})&($date>=current date) >> $json->startObject >> $json->add("type"; $arArt{$j}) >> $t:=$arTermin{$j} >> $json->add("datestring"; String($arTermin{$j};3)) >> $json->add("isoDate"; String($arTermin{$j};8)) >> $json->endObject >> end if >> end for >> $json->endArray >> $json->endObject >> end for >> >> If the month of October has no dates I end with an json like this >> >> "month":"Oktober","clearances“:] >> >> the parser for example in a iPad goes away and nothing is displayed. If only >> the beginning bracket would be there, the parser would work. >> >> What would be good an output "month":"Oktober","clearances“:[] >> >> Grüße/regards >> Norbert >> >> >> Norbert Pfaff >> Mannheimer Str.24b >> 67098 Bad Dürkheim >> >> >> >> _______________________________________________ >> Active4D-dev mailing list >> [email protected] >> http://list.aparajitaworld.com/listinfo/active4d-dev >> Archives: http://active4d-nabble.aparajitaworld.com/ > > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://list.aparajitaworld.com/listinfo/active4d-dev > Archives: http://active4d-nabble.aparajitaworld.com/ Regards, Aparajita _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
