Small practice code involving JSON