JSON generator & parser with circular, date and regexp support