Test json generation. it works