- Updated Ruby snippet for JSON