added opcode json generation