create payload.rb to parse incoming json object