Adding proftojson and samples.
Add encode driver.