test JSON generation, server side ok