output code with json