2 small fixes to json example