add to_ruby methods to writer base, create json writer w/ tests