added functional JSON rendering in a very early stage