Intermediate check-in towards a full fledged JSON generator