Added example of the farmer class using JSON.