set up Posts resource struct to match Json response.