RESTGen is a DataFlex program which will generate DataFlex struct packages, including handling code) from sample JSON.