make the json example more idiomatic