refactor WC demo to use view model JSON