Function AIMessageUsageToJSON