little bit of cleanup on json client example