Update CGenerator2

update CGenerator2
now can parse json